Commit 0c01a42a authored by Aurel's avatar Aurel

wait a bit before trying to reconnect


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@170 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 0ea22929
...@@ -52,6 +52,10 @@ class Dispatcher(Thread): ...@@ -52,6 +52,10 @@ class Dispatcher(Thread):
conn = None conn = None
# Make application execute remaining message if any # Make application execute remaining message if any
app._waitMessage() app._waitMessage()
# Wait a bit before trying to reconnect
t = time()
while time() < t + 1:
pass
handler = ClientEventHandler(app, app.dispatcher) handler = ClientEventHandler(app, app.dispatcher)
while 1: while 1:
if app.pt is not None and app.pt.operational(): if app.pt is not None and app.pt.operational():
......
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