Revision: 16810
Author: thekingant
Date: 2006-08-16 23:21:28 -0700 (Wed, 16 Aug 2006)
ViewCVS: http://svn.sourceforge.net/gaim/?rev=16810&view=rev
Log Message:
-----------
sf patch #1541754, from Sadrul Habib Chowdhury
"Setting an account to 'offline' while it is connecting
doesn't cause the connection to stop. This patch fixes
that."
Modified Paths:
--------------
trunk/src/prpl.c
Modified: trunk/src/prpl.c
===================================================================
--- trunk/src/prpl.c 2006-08-17 05:47:58 UTC (rev 16809)
+++ trunk/src/prpl.c 2006-08-17 06:21:28 UTC (rev 16810)
@@ -171,6 +171,12 @@
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))
/*
@@ -191,13 +197,6 @@
{
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|