aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--skype/skyped.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/skype/skyped.py b/skype/skyped.py
index d53d02a7..605b653b 100644
--- a/skype/skyped.py
+++ b/skype/skyped.py
@@ -98,7 +98,11 @@ def listener(sock, *args):
global options
options.conn, addr = sock.accept()
if hasattr(options.conn, 'handshake'):
- options.conn.handshake()
+ try:
+ options.conn.handshake()
+ except Exception:
+ dprint("Warning, handshake failed, closing connection.")
+ return False
ret = 0
line = options.conn.recv(1024)
if line.startswith("USERNAME") and line.split(' ')[1].strip() == options.config.username: