Add missing await

This commit is contained in:
Dan 2018-09-07 00:41:01 +02:00
parent cc7901adf8
commit 38442bf3c1

View File

@ -147,7 +147,7 @@ class Session:
log.info("System: {} ({})".format(self.client.system_version, self.client.lang_code.upper())) log.info("System: {} ({})".format(self.client.system_version, self.client.lang_code.upper()))
except AuthKeyDuplicated as e: except AuthKeyDuplicated as e:
self.stop() await self.stop()
raise e raise e
except (OSError, TimeoutError, Error): except (OSError, TimeoutError, Error):
await self.stop() await self.stop()