Mercurial > pidgin
comparison src/connection.c @ 10384:b234ad7e0dfe
[gaim-migrate @ 11610]
I think this is a better fix for the jabber problem.
I think that gaim_account_get_connection should never return NULL when
called inside a prpl from a function being called by the core.
I think ChipX86 wrote the code that I'm changing that made account->gc =
NULL. So if he has any objections, he should raise them.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Wed, 15 Dec 2004 22:25:55 +0000 |
parents | 56b53036e48c |
children | 6a043ae92db6 |
comparison
equal
deleted
inserted
replaced
10383:f2035bdc4272 | 10384:b234ad7e0dfe |
---|---|
213 | 213 |
214 g_return_if_fail(gc != NULL); | 214 g_return_if_fail(gc != NULL); |
215 | 215 |
216 account = gaim_connection_get_account(gc); | 216 account = gaim_connection_get_account(gc); |
217 | 217 |
218 if (gaim_account_get_connection(account) != NULL) { | 218 if (!account->disconnecting) { |
219 gaim_account_disconnect(account); | 219 gaim_account_disconnect(account); |
220 return; | 220 return; |
221 } | 221 } |
222 | 222 |
223 gaim_debug_info("connection", "Disconnecting connection %p\n", gc); | 223 gaim_debug_info("connection", "Disconnecting connection %p\n", gc); |