diff --git a/lib/xenu_nntp/server.py b/lib/xenu_nntp/server.py index c735d4e..d73693c 100644 --- a/lib/xenu_nntp/server.py +++ b/lib/xenu_nntp/server.py @@ -37,19 +37,15 @@ class Server(): try: sock, addr = listener.accept() - except ssl.SSLError: + except: return def spawn(): session = Session(self, sock) + session.handle() - try: - session.handle() - - thread = threading.Thread(target=spawn) - thread.start() - except (ssl.SSLEOFError, ssl.SSLError): - pass + thread = threading.Thread(target=spawn) + thread.start() def run(self): hosts = re.split(r'\s*,\s*', self.config.get('listen', 'host'))