From 9e35d669e6b9b0f47b0a5fea3fa6ad83ee44bf42 Mon Sep 17 00:00:00 2001 From: Shiz Date: Sun, 16 Feb 2014 12:05:58 +0100 Subject: [PATCH] Fix typo. --- pydle/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydle/connection.py b/pydle/connection.py index 267c7a3..f119501 100644 --- a/pydle/connection.py +++ b/pydle/connection.py @@ -314,7 +314,7 @@ class Connection: sent_messages = [] with self.send_queue_lock: # ssl.SSLSocket does not allow any flags to be added to send(). - if not tls and hasattr(socket, 'MSG_NOSIGNAL'): + if not self.tls and hasattr(socket, 'MSG_NOSIGNAL'): send_flags = socket.MSG_NOSIGNAL else: send_flags = 0