# HG changeset patch # User Sadrul Habib Chowdhury # Date 1242514726 0 # Node ID 4bba5827b7fc0fa4da2a1b295b6e382e77a0e442 # Parent 126ad62350239094e4d5c4c47e897c8026117b95 Get rid of a runtime warning on connect. diff -r 126ad6235023 -r 4bba5827b7fc libpurple/protocols/msn/soap.c --- a/libpurple/protocols/msn/soap.c Sat May 16 20:50:53 2009 +0000 +++ b/libpurple/protocols/msn/soap.c Sat May 16 22:58:46 2009 +0000 @@ -667,7 +667,8 @@ 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)) {