Skip to content

Commit 77fb37b

Browse files
committed
Restart close timer after cancel closure
1 parent 3420571 commit 77fb37b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/thread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,9 +503,7 @@ async def reply(self, message: discord.Message, anonymous: bool = False) -> None
503503
)
504504
)
505505

506-
await self._restart_close_timer()
507506

508-
if self.close_task is not None:
509507
# Cancel closing if a thread message is sent.
510508
await self.cancel_closure()
511509
tasks.append(
@@ -516,6 +514,8 @@ async def reply(self, message: discord.Message, anonymous: bool = False) -> None
516514
)
517515
)
518516
)
517+
518+
await self._restart_close_timer()
519519

520520
await asyncio.gather(*tasks)
521521

0 commit comments

Comments
 (0)