File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 26
26
27
27
import gc
28
28
from sys import byteorder
29
+ from errno import ETIMEDOUT
29
30
30
31
from micropython import const
31
32
from adafruit_ticks import ticks_ms , ticks_diff
@@ -400,6 +401,7 @@ def accept(
400
401
while self ._status not in (
401
402
wiznet5k .adafruit_wiznet5k .SNSR_SOCK_SYNRECV ,
402
403
wiznet5k .adafruit_wiznet5k .SNSR_SOCK_ESTABLISHED ,
404
+ wiznet5k .adafruit_wiznet5k .SNSR_SOCK_LISTEN ,
403
405
):
404
406
if (
405
407
self ._timeout
@@ -778,7 +780,7 @@ class timeout(TimeoutError):
778
780
the timeout has elapsed and we haven't received any data yet."""
779
781
780
782
def __init__ (self , msg ):
781
- super ().__init__ (msg )
783
+ super ().__init__ (ETIMEDOUT , msg )
782
784
783
785
784
786
# pylint: enable=unused-argument, redefined-builtin, invalid-name
You can’t perform that action at this time.
0 commit comments