def cancel_operation(self): if self._last_operation_active: self._last_operation_active = False rpc.cancel_operation(self.service, self._last_operation_handle)
def cancel_operation(self): if self._last_operation_active: rpc.cancel_operation(self.service, self._last_operation_handle) self._reset_state()