From 9e3e14dd786bef425874d330d57d01998f76e529 Mon Sep 17 00:00:00 2001
From: junglecow <junglecow@no-mail.com>
Date: Mon, 13 Nov 2006 14:44:17 +0000
Subject: [PATCH] Fixed a bug in compatibility code

---
 src/common/xmpp/transports_nb.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/common/xmpp/transports_nb.py b/src/common/xmpp/transports_nb.py
index edab59ea52..02a8d32366 100644
--- a/src/common/xmpp/transports_nb.py
+++ b/src/common/xmpp/transports_nb.py
@@ -157,8 +157,7 @@ class StdlibSSLWrapper(SSLWrapper):
 			traceback.print_stack()
 			if e.args[0] not in (socket.SSL_ERROR_WANT_READ, socket.SSL_ERROR_WANT_WRITE):
 				raise
-		if retval is None: return ''
-		if retval == '': raise SSLWrapper.SocketShutdown('Connection Closed')
+
 		return retval
 
 	def send(this, data, flags=None):
-- 
GitLab