Skip to content

Commit 8d78fde

Browse files
committed
Reset attempts at ws shutdown
1 parent 89544ad commit 8d78fde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

async_substrate_interface/async_substrate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,7 @@ async def __aexit__(self, exc_type, exc_val, exc_tb):
802802
pass
803803
if self.ws is not None:
804804
self._exit_task = asyncio.create_task(self._exit_with_timer())
805+
self._attempts = 0
805806

806807
async def _exit_with_timer(self):
807808
"""

0 commit comments

Comments
 (0)