Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
21754:61725f2eb4a6 | 21758:430827922828 |
---|---|
61 session->rxoff = 0; | 61 session->rxoff = 0; |
62 session->rxbuf = g_new0(gchar, MSIM_READ_BUF_SIZE); | 62 session->rxbuf = g_new0(gchar, MSIM_READ_BUF_SIZE); |
63 session->next_rid = 1; | 63 session->next_rid = 1; |
64 session->last_comm = time(NULL); | 64 session->last_comm = time(NULL); |
65 session->inbox_status = 0; | 65 session->inbox_status = 0; |
66 session->inbox_handle = 0; | |
66 | 67 |
67 return session; | 68 return session; |
68 } | 69 } |
69 | 70 |
70 /** | 71 /** |
88 | 89 |
89 if (session->server_info) { | 90 if (session->server_info) { |
90 msim_msg_free(session->server_info); | 91 msim_msg_free(session->server_info); |
91 } | 92 } |
92 | 93 |
94 /* Stop checking the inbox at the end of the session. */ | |
95 if (session->inbox_handle) { | |
96 purple_timeout_remove(session->inbox_handle); | |
97 } | |
98 | |
93 g_free(session); | 99 g_free(session); |
94 } | 100 } |
95 | 101 |