fix simple command (e.g. stop)

This commit is contained in:
2025-05-05 14:01:18 +02:00
parent 268ebc7e93
commit 5c70017238
5 changed files with 30 additions and 20 deletions

View File

@ -93,9 +93,9 @@ class Client(HandlerBase):
result = node.handle_command(command)
if result is not None:
break
if isinstance(result, str):
if isinstance(result, dict):
return dict(type='accept-command', result=result)
return dict(type='accept-command') # TODO: how to handle result is None?
return dict(type='accept-command')
def info(self):
return ["na"]