commit 5c4a6c0f2b531bd84d4a0c5dad91ace4b8ad3596
parent c2ecfaf239b584e1a3ba9f10f03be0a5441ceac6
Author: SomberNight <somber.night@protonmail.com>
Date: Fri, 2 Nov 2018 16:06:47 +0100
rm network.add_job
current implementation is prone to race, and is not used anyway
Diffstat:
1 file changed, 0 insertions(+), 5 deletions(-)
diff --git a/electrum/network.py b/electrum/network.py
@@ -819,11 +819,6 @@ class Network(PrintError):
self._jobs = jobs or []
asyncio.run_coroutine_threadsafe(self._start(), self.asyncio_loop)
- async def add_job(self, job):
- async with self.restart_lock:
- self._jobs.append(job)
- await self.main_taskgroup.spawn(job)
-
@log_exceptions
async def _stop(self, full_shutdown=False):
self.print_error("stopping network")