def stop(self, onStopped, onFail): ThreadCommand((self._doStop, (), {}), onStopped, onFail) self.started = False