changeset 5784:72fb22b9ac98

[gaim-migrate @ 6209] NOP if setting the state of a connection to what it's already set to. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 07 Jun 2003 02:35:36 +0000
parents d4171d0bc80a
children 5419c37a6b0c
files src/connection.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/connection.c	Sat Jun 07 02:18:44 2003 +0000
+++ b/src/connection.c	Sat Jun 07 02:35:36 2003 +0000
@@ -174,6 +174,9 @@
 {
 	g_return_if_fail(gc != NULL);
 
+	if (gc->state == state)
+		return;
+
 	gc->state = state;
 
 	if (gc->state == GAIM_CONNECTED) {