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)