1
0

payserver: daemon._run should only be called once

This commit is contained in:
SomberNight
2023-01-13 01:02:47 +00:00
parent 9039ec1dc4
commit d5c3c7ca66

View File

@@ -58,7 +58,7 @@ class PayServerPlugin(BasePlugin):
if self.config.get('offline'):
return
self.server = PayServer(self.config, wallet)
asyncio.run_coroutine_threadsafe(daemon._run(jobs=[self.server.run()]), daemon.asyncio_loop)
asyncio.run_coroutine_threadsafe(daemon.taskgroup.spawn(self.server.run()), daemon.asyncio_loop)
@hook
def wallet_export_request(self, d, key):