Fix #2038 : Chrome 17 disconnecting from webui

This commit is contained in:
Calum Lind 2012-02-27 13:37:12 +00:00
parent dd3aab1cef
commit 8db789ffe2

View File

@ -397,7 +397,7 @@ class EventQueue(object):
else:
# Prevent this loop going on indefinitely incase a client leaves
# the page or disconnects uncleanly.
if count >= 3000:
if count >= 50:
d.callback(None)
else:
reactor.callLater(0.1, self._get_events, listener_id, count + 1, d)