Skip to content

Commit 2c17bc2

Browse files
authored
Select method fix at infinite loop in read_loop_blockless
Fixed TypeError where loop would call the entire module instead of calling its method of identical name.
1 parent fde166b commit 2c17bc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evdev/eventio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def read_blockless(previous1, previous2, previous3, previous4, previous5):
8686

8787
while True:
8888
# selecting device and setting timeout to 0 / nothing, thus allowing non-blocking feature
89-
select([self.fd], [], [], nothing)
89+
select.select([self.fd], [], [], nothing)
9090

9191
for event in read_blockless(previous[0], previous[1], previous[2], previous[3], previous[4]):
9292
previous[0], previous[1], previous[2], previous[3], previous[4] = event.usec, event.sec, event.type, event.code, event.value

0 commit comments

Comments
 (0)