comparison 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
comparison
equal deleted inserted replaced
5783:d4171d0bc80a 5784:72fb22b9ac98
171 171
172 void 172 void
173 gaim_connection_set_state(GaimConnection *gc, GaimConnectionState state) 173 gaim_connection_set_state(GaimConnection *gc, GaimConnectionState state)
174 { 174 {
175 g_return_if_fail(gc != NULL); 175 g_return_if_fail(gc != NULL);
176
177 if (gc->state == state)
178 return;
176 179
177 gc->state = state; 180 gc->state = state;
178 181
179 if (gc->state == GAIM_CONNECTED) { 182 if (gc->state == GAIM_CONNECTED) {
180 GaimConnectionUiOps *ops = gaim_get_connection_ui_ops(); 183 GaimConnectionUiOps *ops = gaim_get_connection_ui_ops();