Skip to content

Commit 74c955d

Browse files
authored
Merge pull request #179 from shadow-light/patch-2
You cannot remove an item from a set while iterating through it
2 parents c5e7c9e + 7f0dec2 commit 74c955d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

livereload/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def reload_waiters(cls, path=None):
103103
}
104104

105105
cls._last_reload_time = time.time()
106-
for waiter in cls.waiters:
106+
for waiter in cls.waiters.copy():
107107
try:
108108
waiter.write_message(msg)
109109
except:

0 commit comments

Comments
 (0)