Skip to content

Commit 59399ee

Browse files
committed
Rename
1 parent 635662b commit 59399ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

async_substrate_interface/substrate_addons.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,11 @@ async def _reinstantiate_substrate(
321321
await self.ws.shutdown()
322322
except AttributeError:
323323
pass
324-
if self._forgettable_task is not None:
325-
self._forgettable_task: asyncio.Task
326-
self._forgettable_task.cancel()
324+
_forgettable_task: asyncio.Task
325+
for _forgettable_task in self._forgettable_tasks:
326+
_forgettable_task.cancel()
327327
try:
328-
await self._forgettable_task
328+
await _forgettable_task
329329
except asyncio.CancelledError:
330330
pass
331331
self.chain_endpoint = next_network

0 commit comments

Comments
 (0)