Skip to content

Commit

Permalink
change select to blocking as it is in a thread anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfmanjm committed Mar 7, 2024
1 parent 8493008 commit 5f0a2e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions macros_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from functools import partial
import subprocess
import threading
#import select
import selectors
import re
import os
Expand Down Expand Up @@ -347,7 +346,7 @@ def _script_thread(self, cmd, io):

ok = True
while ok:
for key, _ in sel.select(0):
for key, _ in sel.select(None): # Blocking
data = key.fileobj.readline()
if not data:
ok = False
Expand Down

0 comments on commit 5f0a2e0

Please sign in to comment.