pidgin: c6f4398a: Get rid of a runtime warning on connect.

sadrul at pidgin.im sadrul at pidgin.im
Sat May 16 18:55:29 EDT 2009


-----------------------------------------------------------------
Revision: c6f4398ae6f4a04ae9c75498bb75b08d1ff6d222
Ancestor: 7427469432399386537a063a99a515185e8437db
Author: sadrul at pidgin.im
Date: 2009-05-16T22:58:46
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/c6f4398ae6f4a04ae9c75498bb75b08d1ff6d222

Modified files:
        libpurple/protocols/msn/soap.c

ChangeLog: 

Get rid of a runtime warning on connect.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/soap.c	de2220906eddc184611e9cce54614b9c2fb06f8f
+++ libpurple/protocols/msn/soap.c	57eea1d4153ab6d2ab49e0994f6465c21992d638
@@ -667,7 +667,8 @@ msn_soap_connection_run(gpointer data)
 			conn->handled_len = 0;
 			conn->current_request = req;
 
-			purple_input_remove(conn->event_handle);
+			if (conn->event_handle)
+				purple_input_remove(conn->event_handle);
 			conn->event_handle = purple_input_add(conn->ssl->fd,
 				PURPLE_INPUT_WRITE, msn_soap_write_cb, conn);
 			if (!msn_soap_write_cb_internal(conn, conn->ssl->fd, PURPLE_INPUT_WRITE, TRUE)) {


More information about the Commits mailing list