Skip to content

Commit

Permalink
[python] fixes timeout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lesquoyb committed Aug 21, 2023
1 parent f7ae1b6 commit 36eecbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/gama_client/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async def connect(self, set_socket_id: bool = True, ping_interval: float = 20, p
if set_socket_id:
self.socket_id = await self.connection_future

async def start_listening_loop(self, handle_connection_message: bool, timeout: float = 20.0):
async def start_listening_loop(self, handle_connection_message: bool):
"""
Internal method. It starts an infinite listening loop that will transmit gama-server's messages to the
message_handler function
Expand All @@ -66,7 +66,7 @@ async def start_listening_loop(self, handle_connection_message: bool, timeout: f
"""
while self.socket.open:
try:
mess = await asyncio.wait_for(self.socket.recv(), timeout=timeout)
mess = await self.socket.recv()
try:
js = json.loads(mess)
if handle_connection_message \
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "gama_client"
version = "1.1.4"
version = "1.1.5"
authors = [
{ name="Baptiste Lesquoy", email="[email protected]" },
]
Expand Down

0 comments on commit 36eecbe

Please sign in to comment.