mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 11:09:56 +00:00
Send the encoded data (bytes) and not the str, on the socket.
This commit is contained in:
parent
a1d64fa215
commit
4eb7eeb40f
1 changed files with 1 additions and 1 deletions
|
@ -1366,7 +1366,7 @@ class XMLStream(object):
|
||||||
try:
|
try:
|
||||||
while sent < total and not self.stop.is_set():
|
while sent < total and not self.stop.is_set():
|
||||||
try:
|
try:
|
||||||
sent += self.socket.send(data[sent:])
|
sent += self.socket.send(enc_data[sent:])
|
||||||
count += 1
|
count += 1
|
||||||
except ssl.SSLError as serr:
|
except ssl.SSLError as serr:
|
||||||
if tries >= self.ssl_retry_max:
|
if tries >= self.ssl_retry_max:
|
||||||
|
|
Loading…
Reference in a new issue