Skip to content

Commit a355801

Browse files
committed
uasyncio: wait: Remove no longer needed "if", artifact of epoll impl.
1 parent 4fc72c6 commit a355801

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

uasyncio/uasyncio/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ def wait(self, delay):
5555
if DEBUG and __debug__:
5656
log.debug("poll.wait(%d)", delay)
5757
# We need one-shot behavior (second arg of 1 to .poll())
58-
if delay == -1:
59-
res = self.poller.poll(-1, 1)
60-
else:
61-
res = self.poller.poll(delay, 1)
58+
res = self.poller.poll(delay, 1)
6259
#log.debug("poll result: %s", res)
6360
# Remove "if res" workaround after
6461
# https://github.com/micropython/micropython/issues/2716 fixed.

0 commit comments

Comments
 (0)