Sending thread fix

This commit is contained in:
Peter Šurda 2017-01-14 12:35:08 +01:00
parent 8d278182a7
commit cc4c07025b
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -92,7 +92,7 @@ class sendDataThread(threading.Thread):
uploadRateLimitBytes = BMConfigParser().getint('bitmessagesettings', 'maxuploadrate') * 1000 uploadRateLimitBytes = BMConfigParser().getint('bitmessagesettings', 'maxuploadrate') * 1000
if ((self.services & protocol.NODE_SSL == protocol.NODE_SSL) and if ((self.services & protocol.NODE_SSL == protocol.NODE_SSL) and
self.connectionIsOrWasFullyEstablished and self.connectionIsOrWasFullyEstablished and
shared.haveSSL(not self.initiatedConnection)): protocol.haveSSL(not self.initiatedConnection)):
amountSent = self.sslSock.send(data[:1000]) amountSent = self.sslSock.send(data[:1000])
else: else:
amountSent = self.sock.send(data[:1000]) amountSent = self.sock.send(data[:1000])