- fixed not exitting executor thread

- fixed PID params
This commit is contained in:
jens
2020-12-01 19:35:06 +01:00
parent 5c97ac4d5c
commit 19ed110d0b
3 changed files with 11 additions and 6 deletions
+6 -1
View File
@@ -129,7 +129,12 @@ class MessageDispatcherSync(IConnection):
await asyncio.get_event_loop().run_in_executor(None, h.on_recv, d)
async def on_send(self):
return await asyncio.get_event_loop().run_in_executor(None, self.state.get)
result = None
try:
result = await asyncio.get_event_loop().run_in_executor(None, self.state.get, True, 1.0)
except:
pass
return result
def send(self, data):
self.state.put(data)