summaryrefslogtreecommitdiff
path: root/poezio/tabs
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-04-09 20:26:51 +0200
committermathieui <mathieui@mathieui.net>2017-04-09 20:26:51 +0200
commitfa3e91aa6b2544f28d70ec4a69d7235b4149d340 (patch)
tree1834d05908be96f224e1c47bdc361f0f1b04f9e5 /poezio/tabs
parentf154dcbc824dc343554b0d340a624f1af6705238 (diff)
downloadpoezio-fa3e91aa6b2544f28d70ec4a69d7235b4149d340.tar.gz
poezio-fa3e91aa6b2544f28d70ec4a69d7235b4149d340.tar.bz2
poezio-fa3e91aa6b2544f28d70ec4a69d7235b4149d340.tar.xz
poezio-fa3e91aa6b2544f28d70ec4a69d7235b4149d340.zip
Fix ssl warning tab
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)
Diffstat (limited to 'poezio/tabs')
-rw-r--r--poezio/tabs/confirmtab.py2
1 files changed, 2 insertions, 0 deletions
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):