This commit is contained in:
yumoqing 2019-09-06 09:26:12 +08:00
parent f7ac6112ec
commit 3507ddbab8

View File

@ -69,7 +69,11 @@ class LifeConnect:
asyncio.sleep(wait_time) asyncio.sleep(wait_time)
wait_time = wait_time + 0.4 wait_time = wait_time + 0.4
loop_cnt = loop_cnt - 1 loop_cnt = loop_cnt - 1
await self.conn.close() try:
await self.conn.close()
except:
pass
self.conn = None
await self._mkconn() await self._mkconn()
raise Exception('database connect break') raise Exception('database connect break')