Browse Source
rm network.add_job
current implementation is prone to race, and is not used anyway
3.3.3.1
SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
0 additions and
5 deletions
-
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") |
|
|
|