# HG changeset patch # User Senko Rasic # Date 1194348693 -3600 # Node ID ac545b623d433fb4138fbe02db079b4cc08e0da8 # Parent eafeecd05c9ab9e8d2fa4ac1d838159e2713d8e9 Don't close connection immediately on write error, so the callers don't have to guard against that case. The connection will be closed after the next read error anyways. diff -r eafeecd05c9a -r ac545b623d43 loudmouth/lm-connection.c --- a/loudmouth/lm-connection.c Wed Oct 31 15:34:52 2007 +0000 +++ b/loudmouth/lm-connection.c Tue Nov 06 12:31:33 2007 +0100 @@ -403,10 +403,6 @@ b_written = lm_socket_do_write (connection->socket, str, len); if (b_written < 0) { - connection_do_close (connection); - connection_signal_disconnect (connection, - LM_DISCONNECT_REASON_ERROR); - g_set_error (error, LM_ERROR, LM_ERROR_CONNECTION_FAILED,