Actually wait before reconnecting
This commit is contained in:
parent
f6b7667155
commit
a068acb2f7
2
setup.py
2
setup.py
|
@ -5,7 +5,7 @@ except ImportError:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="mini-syndicate",
|
name="mini-syndicate",
|
||||||
version="0.0.3",
|
version="0.0.4",
|
||||||
author="Tony Garnock-Jones",
|
author="Tony Garnock-Jones",
|
||||||
author_email="tonyg@leastfixedpoint.com",
|
author_email="tonyg@leastfixedpoint.com",
|
||||||
license="GNU General Public License v3 or later (GPLv3+)",
|
license="GNU General Public License v3 or later (GPLv3+)",
|
||||||
|
|
|
@ -216,7 +216,7 @@ class Connection(object):
|
||||||
if did_connect:
|
if did_connect:
|
||||||
pass # Reconnect immediately
|
pass # Reconnect immediately
|
||||||
else:
|
else:
|
||||||
asyncio.sleep(2)
|
await asyncio.sleep(2)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_url(cls, s):
|
def from_url(cls, s):
|
||||||
|
|
Loading…
Reference in New Issue