tDisable task.cancel on interrupt. - obelisk - Electrum server using libbitcoin as its backend
HTML git clone https://git.parazyd.org/obelisk
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 3fb0bfc4504cf87acf959a1e46052be40fd1a6ef
DIR parent eb3fc9397ef86ba53823c113e3a14401d4839903
HTML Author: parazyd <parazyd@dyne.org>
Date: Fri, 9 Apr 2021 12:45:36 +0200
Disable task.cancel on interrupt.
Diffstat:
M electrumobelisk/protocol.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
DIR diff --git a/electrumobelisk/protocol.py b/electrumobelisk/protocol.py
t@@ -120,12 +120,12 @@ class ElectrumProtocol(asyncio.Protocol): # pylint: disable=R0904,R0902
await self.bx.unsubscribe_scripthash(i)
await self.bx.stop()
- idxs = []
- for task in self.tasks:
- idxs.append(self.tasks.index(task))
- task.cancel()
- for i in idxs:
- del self.tasks[i]
+ # idxs = []
+ # for task in self.tasks:
+ # idxs.append(self.tasks.index(task))
+ # task.cancel()
+ # for i in idxs:
+ # del self.tasks[i]
self.stopped = True