fix service restart (#10312)

https://github.com/Chia-Network/chia-blockchain/pull/10233/files
This commit is contained in:
Kyle Altendorf
2022-02-19 12:57:07 -08:00
committed by GitHub
parent b6b57aa2ab
commit 9358a7b3e1
+1 -1
View File
@@ -1087,7 +1087,7 @@ class WebSocketServer:
else:
self.log.info(f"Service {service_command} already running")
already_running = True
elif service_command in self.connections:
elif len(self.connections.get(service_command, [])) > 0:
# If the service was started manually (not launched by the daemon), we should
# have a connection to it.
self.log.info(f"Service {service_command} already registered")