Skip to content

Commit

Permalink
fixed runtime error: Set changed size during iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
kamwoh committed Oct 25, 2017
1 parent cdf50bd commit 04f6dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ws4py/server/geventserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def track(self, websocket):

def clear(self):
logger.info("Terminating server and all connected websockets")
for greenlet in self:
for greenlet in list(self):
try:
websocket = greenlet._run.im_self
if websocket:
Expand Down

0 comments on commit 04f6dae

Please sign in to comment.