Fixed RethinkDBStorage.

This commit is contained in:
Alex Root Junior 2018-05-18 21:13:19 +03:00
parent 272322ab38
commit 5ed2b35eed
2 changed files with 4 additions and 3 deletions

View file

@ -232,7 +232,8 @@ class Executor:
loop.create_task(self.dispatcher.start_polling(reset_webhook=reset_webhook))
loop.run_forever()
except (KeyboardInterrupt, SystemExit):
loop.stop()
# loop.stop()
pass
finally:
loop.run_until_complete(self._shutdown_polling())
log.warning("Goodbye!")