Mercurial > pidgin
changeset 26891:4bba5827b7fc
Get rid of a runtime warning on connect.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 16 May 2009 22:58:46 +0000 |
parents | 126ad6235023 |
children | aa341c72f29f |
files | libpurple/protocols/msn/soap.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)) {