From fa3e91aa6b2544f28d70ec4a69d7235b4149d340 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 9 Apr 2017 20:26:51 +0200 Subject: Fix ssl warning tab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It wasn’t blocking because the asyncio api slightly changed in december which prevent us from running another event loop while a first one was already running. This bypasses asyncio completely, thus avoiding future problems (hopefully the select() API won’t change soon) --- poezio/tabs/confirmtab.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'poezio/tabs') diff --git a/poezio/tabs/confirmtab.py b/poezio/tabs/confirmtab.py index 49339fce..39f630cb 100644 --- a/poezio/tabs/confirmtab.py +++ b/poezio/tabs/confirmtab.py @@ -40,6 +40,7 @@ class ConfirmTab(Tab): self.update_keys() self.update_commands() self.completion_callback = callback + self.done = False def toggle_choice(self): self.dialog.toggle_choice() @@ -81,6 +82,7 @@ class ConfirmTab(Tab): self.input.resize(1, self.width, self.height-1, 0) def close(self, arg=None): + self.done = True self.core.close_tab(self) def on_input(self, key, raw): -- cgit v1.2.3