Mercurial > pidgin
comparison src/protocols/irc/cmds.c @ 13912:3d1cee0d360d
[gaim-migrate @ 16411]
Fix the IRC crash-on-quit bug that I introduced two weeks ago.
My bad. account->disconnecting seems weird to me... it seems
like we should get rid of it and add a GAIM_DISCONNECTING state
to GaimConnectionState, instead
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Mon, 03 Jul 2006 05:37:41 +0000 |
| parents | 5d5e249c488e |
| children |
comparison
equal
deleted
inserted
replaced
| 13911:b210409cdc56 | 13912:3d1cee0d360d |
|---|---|
| 386 irc_send(irc, buf); | 386 irc_send(irc, buf); |
| 387 g_free(buf); | 387 g_free(buf); |
| 388 | 388 |
| 389 irc->quitting = TRUE; | 389 irc->quitting = TRUE; |
| 390 | 390 |
| 391 gaim_account_set_status(irc->account, "offline", TRUE, NULL); | 391 if (!irc->account->disconnecting) |
| 392 gaim_account_set_status(irc->account, "offline", TRUE, NULL); | |
| 392 } | 393 } |
| 393 | 394 |
| 394 return 0; | 395 return 0; |
| 395 } | 396 } |
| 396 | 397 |
