Skip to content

Commit 893f24d

Browse files
committed
chore: stop cronjob during channel closure
1 parent 6475e54 commit 893f24d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyinjective/async_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,11 @@ async def get_tx(self, tx_hash):
156156

157157
async def close_exchange_channel(self):
158158
await self.exchange_channel.close()
159+
self.cron.stop()
159160

160161
async def close_chain_channel(self):
161162
await self.chain_channel.close()
163+
self.cron.stop()
162164

163165
async def sync_timeout_height(self):
164166
block = await self.get_latest_block()

0 commit comments

Comments
 (0)