# HG changeset patch # User Nathan Walp # Date 1140985016 0 # Node ID e9cf00a30b49e5221b537727025a58531667afec # Parent 1d569233f25763714f665b646dccb9d3cd442608 [gaim-migrate @ 15700] make sure disconnect messages get send before we disconnect committer: Tailor Script diff -r 1d569233f257 -r e9cf00a30b49 src/prpl.c --- a/src/prpl.c Sun Feb 26 19:35:31 2006 +0000 +++ b/src/prpl.c Sun Feb 26 20:16:56 2006 +0000 @@ -292,12 +292,6 @@ return; } - if (!gaim_status_is_online(new_status)) - { - if (!gaim_account_is_disconnected(account)) - gaim_account_disconnect(account); - return; - } if (gaim_account_is_connecting(account)) /* @@ -318,6 +312,13 @@ { prpl_info->set_status(account, new_status); } + + if (!gaim_status_is_online(new_status)) + { + if (!gaim_account_is_disconnected(account)) + gaim_account_disconnect(account); + return; + } } void