lm-connection.c: connection_send(): in case of error, properly set the error variable
authorSenko Rasic <senko.rasic@collabora.co.uk>
Mon, 08 Oct 2007 14:48:38 +0200
changeset 283 b77f6cfe229e
parent 282 0bd1892a18d3
child 290 4ab72c1064e9
lm-connection.c: connection_send(): in case of error, properly set the error variable
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;
 	}