diff src/connection.c @ 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 1b5e6e6e80e9
children 8c237274189f
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) {