fix(steam): drain queued control notifications

This commit is contained in:
Kurt Himebauch committed 2026-10-26 13:27:03 -04:00
1 parent 749ade4a45
commit 4d7ceb2325
2 files changed
+39 -1

No files matched your search

@@ -959,7 +959,8 @@ class Helper:
sources = [self.page.ws] + ([watcher] if watcher.fileno() >= 0 else [])
if self.chooser is not None:
sources.append(self.chooser[1].stdout)
ready = [self.page.ws] if self.page.ws.pending() else select.select(sources, [], [], 0.25)[0]
queued = self.page.ws.pending() or bool(self.page.events)
ready = [self.page.ws] if queued else select.select(sources, [], [], 0.25)[0]
if self.chooser is not None and self.chooser[1].stdout in ready:
self.chooser_done()
due = False