Rename disconnect calls in the send function.

This commit is contained in:
poljar (Damir Jelić) 2018-02-01 14:58:13 +01:00
parent 6920b463e2
commit 57cc1b3e88

View file

@ -420,13 +420,13 @@ def try_send(server, message):
return True
except OSError as error:
disconnect(server)
matrix_server_disconnect(server)
abort_send(server)
server_buffer_prnt(server, str(error))
return False
if sent == 0:
disconnect(server)
matrix_server_disconnect(server)
abort_send(server)
server_buffer_prnt(server, "Socket closed while sending data.")
return False