Skip to content

Commit f6bed00

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 e4d9863 commit f6bed00

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
@@ -307,13 +307,9 @@ def do_activate(self, *args, **kwargs):
307307
# navigation works
308308
self.handlers[self.initial_page].page_widget.grab_focus()
309309

310-
loop = asyncio.get_event_loop()
311310
self.tasks = [
312311
asyncio.ensure_future(self.dispatcher.listen_for_events()),
313312
]
314-
315-
loop.run_until_complete(asyncio.wait(
316-
self.tasks, return_when=asyncio.FIRST_EXCEPTION))
317313
else:
318314
if self.main_notebook:
319315
self.main_notebook.set_current_page(

0 commit comments

Comments
 (0)