Skip to content

Commit 0072859

Browse files
committed
actually *use* the copy of the watches for iteration
1 parent 1134421 commit 0072859

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nrepl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def run (_):
4040
for incoming in self._IO:
4141
with self._watches_lock:
4242
watches = dict(self._watches)
43-
for key, (pred, callback) in self._watches.items():
43+
for key, (pred, callback) in watches.items():
4444
if pred(incoming):
4545
callback(incoming, self, key)
4646
self._thread = Monitor()

0 commit comments

Comments
 (0)