fix simple command (e.g. stop)
This commit is contained in:
4
base.py
4
base.py
@ -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"]
|
||||
|
Reference in New Issue
Block a user