changeset 17439:3919c68eb5b7

don't do unneeded work
author Nathan Walp <nwalp@pidgin.im>
date Mon, 28 May 2007 21:37:06 +0000
parents 48aebb50a93d
children d42de194a364
files libpurple/protocols/jabber/presence.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Mon May 28 20:54:51 2007 +0000
+++ b/libpurple/protocols/jabber/presence.c	Mon May 28 21:37:06 2007 +0000
@@ -106,11 +106,12 @@
 		return;
 
 	disconnected = purple_account_is_disconnected(account);
-	primitive = purple_status_type_get_primitive(purple_status_get_type(status));
 
 	if(disconnected)
 		return;
 
+	primitive = purple_status_type_get_primitive(purple_status_get_type(status));
+
 	gc = purple_account_get_connection(account);
 	js = gc->proto_data;