command should be running observer before it sends data over connection
@@ -37,9 +37,10 @@ class Command(ConnectionObserver):
def start(self, *args, **kwargs):
"""Start background execution of command."""
self._validate_start(*args, **kwargs)
+ ret = super(Command, self).start(*args, **kwargs)
self._is_running = True # when it sends - real CMD starts running
self.connection.send(self.command_string)
- return super(Command, self).start(*args, **kwargs)
+ return ret
def _validate_start(self, *args, **kwargs):
# check base class invariants first
