Skip to content

Commit 8677a06

Browse files
committed
update to arg, requested changes
1 parent a758005 commit 8677a06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pythonosc/tcp_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,18 @@ class TCPDispatchClient(SimpleTCPClient):
127127

128128
dispatcher = Dispatcher()
129129

130-
def handle_messages(self, timeout: int = 30) -> None:
130+
def handle_messages(self, timeout_sec: int = 30) -> None:
131131
"""Wait :int:`timeout` seconds for a message from the server and process each message with the registered
132132
handlers. Continue until a timeout occurs.
133133
134134
Args:
135135
timeout: Time in seconds to wait for a message
136136
"""
137-
r = self.receive(timeout)
137+
r = self.receive(timeout_sec)
138138
while r:
139139
for m in r:
140140
self.dispatcher.call_handlers_for_packet(m, (self.address, self.port))
141-
r = self.receive(timeout)
141+
r = self.receive(timeout_sec)
142142

143143

144144
class AsyncTCPClient:

0 commit comments

Comments
 (0)