Skip to content

Commit 98e1e45

Browse files
authored
fix: memory leak (#60)
1 parent c412f39 commit 98e1e45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

txstratum/protocol.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ def connection_lost(self, exc: Optional[Exception]) -> None:
186186
asyncio.ensure_future(self.estimator_task.stop())
187187
if self.refresh_job_task:
188188
asyncio.ensure_future(self.refresh_job_task.stop())
189+
if self.messages_timeout_task:
190+
asyncio.ensure_future(self.messages_timeout_task.stop())
189191

190192
def ask_miner_to_reconnect(self) -> None:
191193
"""Ask the miner to reconnect. We just want to force it to disconnect with this."""

0 commit comments

Comments
 (0)