In case of timeout make sure to cancel network operation
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 15 May 2009 03:51:52 +0000 (20:51 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 15 May 2009 03:51:52 +0000 (20:51 -0700)
src/service.c

index 951c9d6..88b131a 100644 (file)
@@ -292,6 +292,9 @@ static gboolean connect_timeout(gpointer user_data)
 
        service->timeout = 0;
 
+       if (service->network != NULL)
+               __connman_network_disconnect(service->network);
+
        if (service->pending != NULL) {
                DBusMessage *reply;