obelisk

Electrum server using libbitcoin as its backend
git clone https://git.parazyd.org/obelisk
Log | Files | Refs | README | LICENSE

commit 3fb0bfc4504cf87acf959a1e46052be40fd1a6ef
parent eb3fc9397ef86ba53823c113e3a14401d4839903
Author: parazyd <parazyd@dyne.org>
Date:   Fri,  9 Apr 2021 12:45:36 +0200

Disable task.cancel on interrupt.

Diffstat:
Melectrumobelisk/protocol.py | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/electrumobelisk/protocol.py b/electrumobelisk/protocol.py @@ -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