Commit 13c34039 authored by Jim Fulton's avatar Jim Fulton

Fixed bug that can cause the asyncore client loop to fail.

parent cddb7eaf
......@@ -82,7 +82,10 @@ def client_loop():
continue
if not (r or w or e):
for obj in client_map.itervalues():
# The line intentionally doesn't use iterators. Other
# threads can close dispatchers, causeing the socket
# map to shrink.
for obj in client_map.values():
if isinstance(obj, Connection):
# Send a heartbeat message as a reply to a
# non-existent message id.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment