Skip to content

Commit 1b7fb1e

Browse files
committed
add comment
1 parent 016c654 commit 1b7fb1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

safeeyes/plugins/smartpause/ext_idle_notify.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ def _run(self):
7878
# unfortunately, this seems like the best way to make sure that dispatch
7979
# doesn't block potentially forever (up to multiple seconds in my usage)
8080
read, _w, _x = select.select((display_fd, self._r_channel), (), ())
81+
8182
if self._r_channel in read:
83+
# the channel was written to, which means stop() was called
84+
# at this point, self._running should be false as well
8285
break
8386

8487
if display_fd in read:

0 commit comments

Comments
 (0)