mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-22 00:52:32 +03:00
fix service restart (#10312)
https://github.com/Chia-Network/chia-blockchain/pull/10233/files
This commit is contained in:
parent
b6b57aa2ab
commit
9358a7b3e1
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user