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 return True
except OSError as error: except OSError as error:
disconnect(server) matrix_server_disconnect(server)
abort_send(server) abort_send(server)
server_buffer_prnt(server, str(error)) server_buffer_prnt(server, str(error))
return False return False
if sent == 0: if sent == 0:
disconnect(server) matrix_server_disconnect(server)
abort_send(server) abort_send(server)
server_buffer_prnt(server, "Socket closed while sending data.") server_buffer_prnt(server, "Socket closed while sending data.")
return False return False