Mercurial > pidgin
diff libpurple/protocols/myspace/session.c @ 21758:430827922828
Avoid checking for new message in the inbox when not actually connected.
This helps avoid a half-dozen assertions by not trying to act on a closed
socket.
| author | Kevin Stange <kevin@simguy.net> |
|---|---|
| date | Tue, 04 Dec 2007 05:43:15 +0000 |
| parents | 51457cf3d27b |
| children | c0ad8b41ce09 |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/session.c Tue Dec 04 02:50:44 2007 +0000 +++ b/libpurple/protocols/myspace/session.c Tue Dec 04 05:43:15 2007 +0000 @@ -63,6 +63,7 @@ session->next_rid = 1; session->last_comm = time(NULL); session->inbox_status = 0; + session->inbox_handle = 0; return session; } @@ -90,6 +91,11 @@ msim_msg_free(session->server_info); } + /* Stop checking the inbox at the end of the session. */ + if (session->inbox_handle) { + purple_timeout_remove(session->inbox_handle); + } + g_free(session); }
