Commit b4c6228
Fix unclosed aiohttp connector warning on shutdown
Store the shutdown task reference and await it in the finally block,
ensuring bot.close() fully completes before the event loop exits.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3c37ab0 commit b4c6228
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
293 | 296 | | |
294 | 297 | | |
295 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
296 | 301 | | |
297 | 302 | | |
298 | 303 | | |
| |||
348 | 353 | | |
349 | 354 | | |
350 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
351 | 360 | | |
352 | 361 | | |
353 | 362 | | |
| |||
0 commit comments