fix service restart (#10312)

https://github.com/Chia-Network/chia-blockchain/pull/10233/files
This commit is contained in:
Kyle Altendorf 2022-02-19 15:57:07 -05:00 committed by GitHub
parent b6b57aa2ab
commit 9358a7b3e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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")