def destroy(self, for_restart: bool = False): try: self.send_command(ImmediateCommand("kill")) except BrokenPipeError: pass except OSError: pass super().destroy()
def destroy(self): try: self.send_command(ImmediateCommand("kill")) except BrokenPipeError: pass except OSError: pass super().destroy()
def interrupt(self): # Don't interrupt local process, but direct it to device self._send_msg(ImmediateCommand("interrupt"))