X-Git-Url: https://git.ralfj.de/saartuer.git/blobdiff_plain/98411bd460ad1474b8c3100bf8241c04519b7a2d..73cd08c855a77bc0df90d6e94f6d75d42d6f5e5e:/tysock.py diff --git a/tysock.py b/tysock.py index b7cb1cc..b987567 100644 --- a/tysock.py +++ b/tysock.py @@ -30,6 +30,7 @@ class TySocket(): b'lock': StateMachine.CMD_LOCK, b'fallback_mode_on': StateMachine.CMD_FALLBACK_ON, b'fallback_mode_off': StateMachine.CMD_FALLBACK_OFF, + b'status': StateMachine.CMD_STATUS, } def __init__(self, sm): @@ -72,6 +73,7 @@ class TySocket(): if data in self.CMDs: self._sm.callback(self.CMDs[data], self._answer(conn)) # _answer will be called, and it will close the connection + continue # make sure we break so we don't close it else: waynesend(conn, 'Command not found') except KeyboardInterrupt: