Skip to content

Commit

Permalink
fix(doip): Actually reply to the AliveCheckRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandjarisch authored and rumpelsepp committed Dec 4, 2024
1 parent bb07fda commit 779bcbc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gallia/transports/doip.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,7 @@ async def _read_worker(self) -> None:
hdr, data = await self._read_frame()
if hdr is None or data is None:
continue
if hdr.PayloadType == PayloadTypes.DiagnosticMessage and isinstance(
data, AliveCheckRequest
):
if hdr.PayloadType == PayloadTypes.AliveCheckRequest:
await self.write_alive_check_response()
continue
await self._read_queue.put((hdr, data))
Expand Down

0 comments on commit 779bcbc

Please sign in to comment.