Don't start DHCP again after handshake
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 22 Dec 2008 09:20:03 +0000 (10:20 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 22 Dec 2008 09:20:03 +0000 (10:20 +0100)
plugins/wifi.c

index f72cdb8..f70f0b6 100644 (file)
@@ -228,7 +228,7 @@ static void state_change(struct connman_element *device,
        if (element == NULL)
                goto reconnect;
 
-       if (state == STATE_COMPLETED) {
+       if (state == STATE_COMPLETED && data->connected == FALSE) {
                struct connman_element *dhcp;
 
                data->connected = TRUE;