diff options
| author | Rapptz <[email protected]> | 2017-03-24 20:25:38 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-03-24 20:27:30 -0400 |
| commit | 9885a946e1b801c383c9ff9d1ac5a5774520d09c (patch) | |
| tree | 94fbd71486722288578adf0d1f7f30621a9ee1bb /examples/basic_bot.py | |
| parent | Sort Guild.text_channels and Guild.voice_channels in UI order. (diff) | |
| download | discord.py-9885a946e1b801c383c9ff9d1ac5a5774520d09c.tar.xz discord.py-9885a946e1b801c383c9ff9d1ac5a5774520d09c.zip | |
More robust cleanup for Client.run.
This should prevent asyncio.CancelledError from being propagated more
and suppressed "Task was destroyed but was pending!" warnings when
doing graceful closes outside of using a KeyboardInterrupt.
To make clean up a bit more robust, also add signal handlers
for POSIX systems.
Diffstat (limited to 'examples/basic_bot.py')
0 files changed, 0 insertions, 0 deletions