summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/SSLServer.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/SSLServer.py b/src/lib/SSLServer.py
index ed8e5e405..7c5b76664 100644
--- a/src/lib/SSLServer.py
+++ b/src/lib/SSLServer.py
@@ -139,8 +139,14 @@ class SSLServer (SocketServer.TCPServer, object):
return sslsock, sockinfo
def close_request(self, request):
- request.unwrap()
- request.close()
+ try:
+ request.unwrap()
+ except:
+ pass
+ try:
+ request.close()
+ except:
+ pass
def _get_url(self):
port = self.socket.getsockname()[1]