Call purple_account_disconnect before set_enabled to avoid race condition with PurpleConnection disconnect timer
This commit is contained in:
parent
573b15bc2f
commit
c7ef038fec
1 changed files with 1 additions and 0 deletions
|
@ -254,6 +254,7 @@ class SpectrumNetworkPlugin : public NetworkPlugin {
|
|||
if (account) {
|
||||
// VALGRIND_DO_LEAK_CHECK;
|
||||
m_sessions.erase(user);
|
||||
purple_account_disconnect(account);
|
||||
purple_account_set_enabled(account, "spectrum", FALSE);
|
||||
|
||||
// Remove conversations.
|
||||
|
|
Loading…
Add table
Reference in a new issue