paneldue: exit send loop when serial port is disconnected
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
ab6ed40bcb
commit
ec85b31a62
|
@ -122,6 +122,8 @@ class SerialConnection:
|
|||
|
||||
async def _do_send(self):
|
||||
while self.send_buffer:
|
||||
if not self.connected:
|
||||
break
|
||||
try:
|
||||
sent = os.write(self.fd, self.send_buffer)
|
||||
except os.error as e:
|
||||
|
|
Loading…
Reference in New Issue