Wait for local compute to be started.

Don't reconnect to local compute when server is being stopped.
This commit is contained in:
grossmj committed 2021-04-13 15:41:59 +09:30
1 parent 71725aade6
commit 6b0d0de1bc
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -348,7 +348,7 @@ class Controller:
self._computes[compute.id] = compute
#self.save()
if connect:
asyncio.ensure_future(compute.connect())
asyncio.get_event_loop().call_later(1, lambda: asyncio.ensure_future(compute.connect()))
self.notification.controller_emit("compute.created", compute.__json__())
return compute
else: