From 7e78554e9783f6711f7bb5f08728f23c98e31df5 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 11 Jan 2016 00:08:38 +0100 Subject: [PATCH] For frenzy Ctrl-C pressing --- lib/core/option.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index 10e48022d..aa2b7869d 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1039,6 +1039,8 @@ def _setSocketPreConnect(): socket._ready[key].append(s._sock) except socket.error: pass + except KeyboardInterrupt: + break finally: time.sleep(0.01)