Skip to content

Commit ee9016e

Browse files
committed
Remove extra loop.run_until_complete from do_activate
The loop is already running at this point. This apparently didn't exploded with gbulb, but glib's asyncio loop raises an exception in this case. QubesOS/qubes-issues#9807
1 parent 1848e4f commit ee9016e

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

qubes_menu/appmenu.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,13 +309,9 @@ def do_activate(self, *args, **kwargs):
309309
# navigation works
310310
self.handlers[self.initial_page].page_widget.grab_focus()
311311

312-
loop = asyncio.get_event_loop()
313312
self.tasks = [
314313
asyncio.ensure_future(self.dispatcher.listen_for_events()),
315314
]
316-
317-
loop.run_until_complete(asyncio.wait(
318-
self.tasks, return_when=asyncio.FIRST_EXCEPTION))
319315
else:
320316
if self.main_notebook:
321317
self.main_notebook.set_current_page(

0 commit comments

Comments
 (0)