Skip to content

Commit

Permalink
Change request_alive_check socket type (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: Bongyong Choi <[email protected]>
  • Loading branch information
navajowhite and cby-vault authored Jun 17, 2022
1 parent f3bab40 commit 8277ec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doipclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,10 +560,10 @@ def request_alive_check(self):
"""
message = AliveCheckRequest()
self.send_doip_message(
message, transport=DoIPClient.TransportType.TRANSPORT_UDP
message, transport=DoIPClient.TransportType.TRANSPORT_TCP
)
while True:
result = self.read_doip(transport=DoIPClient.TransportType.TRANSPORT_UDP)
result = self.read_doip(transport=DoIPClient.TransportType.TRANSPORT_TCP)
if type(result) == AliveCheckResponse:
return result
elif result:
Expand Down

0 comments on commit 8277ec7

Please sign in to comment.