Skip to content

Commit 755c07a

Browse files
committed
fix: store asyncio.create_task reference to prevent GC (RUF006)
1 parent 2716896 commit 755c07a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

irc_handlers/rpl_endofmotd_376.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def execute(self, send_msg, prefix, command, params):
2828
if isinstance(self.auth, str):
2929
await send_msg(self.auth, 5)
3030

31-
asyncio.create_task(_run_command_setups(self))
31+
self._setup_task = asyncio.create_task(_run_command_setups(self))
3232

3333

3434
async def _run_command_setups(router):

0 commit comments

Comments
 (0)