Actually wait before reconnecting

This commit is contained in:
Tony Garnock-Jones 2019-06-23 15:15:22 +01:00
parent f6b7667155
commit a068acb2f7
2 changed files with 2 additions and 2 deletions

View File

@ -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+)",

View File

@ -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):