aboutsummaryrefslogtreecommitdiffstats
path: root/warmachine
diff options
context:
space:
mode:
authorjason2016-08-18 19:43:14 -0600
committerjason2016-08-18 19:43:14 -0600
commita6b4e3c30e27cd847e56edf18a32a3f460bc0052 (patch)
treed21e7498885fc47b35abde4ea05b915c847df70d /warmachine
parent4518daba36678f52330513ec1fec82a44340fa81 (diff)
downloadwarmachine-ng-a6b4e3c30e27cd847e56edf18a32a3f460bc0052.tar.gz
warmachine-ng-a6b4e3c30e27cd847e56edf18a32a3f460bc0052.zip
try to fix the timeout detection hack
Diffstat (limited to 'warmachine')
-rw-r--r--warmachine/connections/slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/warmachine/connections/slack.py b/warmachine/connections/slack.py
index 07e026c..10b6354 100644
--- a/warmachine/connections/slack.py
+++ b/warmachine/connections/slack.py
@@ -58,8 +58,8 @@ class SlackWS(Connection):
58 try: 58 try:
59 message = json.loads(await self.ws.recv()) 59 message = json.loads(await self.ws.recv())
60 except websockets.ConnectionClosed as e: 60 except websockets.ConnectionClosed as e:
61 self.log.error('Connection Closed: {}'.format(e)) 61 self.log.error('{}'.format(e))
62 while not self.connect(): 62 while not await self.connect():
63 self.error('Trying to reconnect...') 63 self.error('Trying to reconnect...')
64 await asyncio.sleep(300) 64 await asyncio.sleep(300)
65 return 65 return