Skip to content

Commit

Permalink
fix(doip): Do not fail ConnectionErrors while closing connection
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandjarisch authored and rumpelsepp committed Dec 4, 2024
1 parent 779bcbc commit c43cb63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gallia/transports/doip.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,10 @@ async def close(self) -> None:
self._read_task.cancel()
self.writer.close()
logger.debug("Awaiting confirmation of closed writer")
await self.writer.wait_closed()
try:
await self.writer.wait_closed()
except ConnectionError as e:
logger.debug(f"Exception while waiting for the writer to close: {e!r}")


class DoIPConfig(BaseModel):
Expand Down

0 comments on commit c43cb63

Please sign in to comment.