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