mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-01-16 17:09:25 +01:00
fix: checking is "_rpc_server" attributes exists to not throw exception
This commit is contained in:
@@ -184,7 +184,7 @@ class Server:
|
||||
await self.__cancel_servers()
|
||||
await self.__cancel_tasks()
|
||||
|
||||
if self._enable_rpc:
|
||||
if hasattr(self, "_rpc_server") and self._enable_rpc:
|
||||
logger.debug("Closing rpyc server.")
|
||||
self._rpc_server.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user