silence sphinx a bit
[saartuer.git] / tysock.py
index b7cb1cc6b09e2cb909481a256b9f9ee203534d82..b987567168bd9ca93a23e3ff0252b76a3f0d9c2d 100644 (file)
--- 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: