catch all OSError errors in the read loop

This commit is contained in:
Stefan Allius
2024-05-28 21:55:42 +02:00
parent 66657888dd
commit 3980ac013b
2 changed files with 3 additions and 3 deletions

View File

@@ -65,9 +65,7 @@ class AsyncStream():
await self.__async_forward()
await self.async_publ_mqtt()
except (ConnectionResetError,
ConnectionAbortedError,
BrokenPipeError) as error:
except OSError as error:
logger.error(f'{error} for l{self.l_addr} | '
f'r{self.r_addr}')
await self.disc()