/soc/2013/ankitkv/gobjectification: d51b748b6739: Prevent purple...

Ankit Vani a at nevitus.org
Wed Oct 2 13:28:40 EDT 2013


Changeset: d51b748b6739d0ab8ea3f9b48c13703a85174afb
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-10-02 22:58 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/d51b748b6739

Description:

Prevent purple_account_disconnect being called when account is already being disconnected

diffstat:

 libpurple/account.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff --git a/libpurple/account.c b/libpurple/account.c
--- a/libpurple/account.c
+++ b/libpurple/account.c
@@ -378,6 +378,7 @@ purple_account_disconnect(PurpleAccount 
 	const char *username;
 
 	g_return_if_fail(PURPLE_IS_ACCOUNT(account));
+	g_return_if_fail(!purple_account_is_disconnecting(account));
 	g_return_if_fail(!purple_account_is_disconnected(account));
 
 	priv = PURPLE_ACCOUNT_GET_PRIVATE(account);



More information about the Commits mailing list