- fixed not exitting executor thread
- fixed PID params
This commit is contained in:
+6
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user