Mercurial > pidgin.yaz
comparison libpurple/protocols/myspace/myspace.c @ 32770:a5f50581b7c0
Myspace: Move "inpa" input watcher into protocol_data.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 18 Oct 2011 21:02:58 +0000 |
parents | 2ec94166be43 |
children |
comparison
equal
deleted
inserted
replaced
32769:d8c652ea476a | 32770:a5f50581b7c0 |
---|---|
2165 g_free(tmp); | 2165 g_free(tmp); |
2166 return; | 2166 return; |
2167 } | 2167 } |
2168 | 2168 |
2169 session->fd = source; | 2169 session->fd = source; |
2170 | 2170 session->inpa = purple_input_add(source, PURPLE_INPUT_READ, msim_input_cb, gc); |
2171 gc->inpa = purple_input_add(source, PURPLE_INPUT_READ, msim_input_cb, gc); | |
2172 } | 2171 } |
2173 | 2172 |
2174 /** | 2173 /** |
2175 * Start logging in to the MSIM servers. | 2174 * Start logging in to the MSIM servers. |
2176 * | 2175 * |
2261 if (session == NULL) | 2260 if (session == NULL) |
2262 return; | 2261 return; |
2263 | 2262 |
2264 purple_connection_set_protocol_data(gc, NULL); | 2263 purple_connection_set_protocol_data(gc, NULL); |
2265 | 2264 |
2266 if (session->gc->inpa) { | 2265 if (session->inpa) { |
2267 purple_input_remove(session->gc->inpa); | 2266 purple_input_remove(session->inpa); |
2267 session->inpa = 0; | |
2268 } | 2268 } |
2269 if (session->fd >= 0) { | 2269 if (session->fd >= 0) { |
2270 close(session->fd); | 2270 close(session->fd); |
2271 session->fd = -1; | 2271 session->fd = -1; |
2272 } | 2272 } |