# HG changeset patch # User Senko Rasic # Date 1191847718 -7200 # Node ID b77f6cfe229e4fddad61630480f94446b40866d8 # Parent 0bd1892a18d322e7bc7878f54d33e078a16d7fd5 lm-connection.c: connection_send(): in case of error, properly set the error variable diff -r 0bd1892a18d3 -r b77f6cfe229e loudmouth/lm-connection.c --- a/loudmouth/lm-connection.c Tue Oct 02 14:11:04 2007 +0200 +++ b/loudmouth/lm-connection.c Mon Oct 08 14:48:38 2007 +0200 @@ -391,6 +391,11 @@ connection_do_close (connection); connection_signal_disconnect (connection, LM_DISCONNECT_REASON_ERROR); + + g_set_error (error, + LM_ERROR, + LM_ERROR_CONNECTION_FAILED, + "Server closed the connection"); return FALSE; }