We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0e9562 commit 8c3e417Copy full SHA for 8c3e417
adafruit_wiznet5k/adafruit_wiznet5k_socket.py
@@ -414,7 +414,7 @@ def accept(
414
client_sock._socknum = current_socknum # pylint: disable=protected-access
415
self._bind((None, self._listen_port))
416
self.listen()
417
- while self._status != wiznet5k.adafruit_wiznet5k.SNSR_SOCK_LISTEN:
+ if self._status != wiznet5k.adafruit_wiznet5k.SNSR_SOCK_LISTEN:
418
raise RuntimeError("Failed to open new listening socket")
419
return client_sock, addr
420
0 commit comments