Mercurial > pidgin.yaz
comparison src/protocols/msn/servconn.c @ 10434:6be6da69d603
[gaim-migrate @ 11691]
A patch from Felipe to ensure switchboards are destroyed when we disconnect.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Mon, 27 Dec 2004 18:53:59 +0000 |
parents | e5455f1dc9b6 |
children | 9bed28273ec7 |
comparison
equal
deleted
inserted
replaced
10433:f7f06cb69d5e | 10434:6be6da69d603 |
---|---|
189 | 189 |
190 void | 190 void |
191 msn_servconn_disconnect(MsnServConn *servconn) | 191 msn_servconn_disconnect(MsnServConn *servconn) |
192 { | 192 { |
193 g_return_if_fail(servconn != NULL); | 193 g_return_if_fail(servconn != NULL); |
194 g_return_if_fail(servconn->connected); | 194 |
195 if (!servconn->connected) | |
196 { | |
197 if (servconn->disconnect_cb != NULL) | |
198 servconn->disconnect_cb(servconn); | |
199 | |
200 return; | |
201 } | |
195 | 202 |
196 if (servconn->inpa > 0) | 203 if (servconn->inpa > 0) |
197 { | 204 { |
198 gaim_input_remove(servconn->inpa); | 205 gaim_input_remove(servconn->inpa); |
199 servconn->inpa = 0; | 206 servconn->inpa = 0; |