Skip to content

Commit

Permalink
fix: handle disconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
yowpark committed Oct 26, 2023
1 parent c377caf commit 874368c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/python/gamium/gamium/tcp_gamium_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def request(self, packet: PacketTypes[P, R]) -> R:
data = self._socket.recv(1024)
if len(data) == 0:
self.disconnect()
raise Exception("Connection closed")
self._recv_queue.pushBuffer(data)
if self._recv_queue.has():
break
Expand Down

0 comments on commit 874368c

Please sign in to comment.