configsource: move "netconfig stop" before interface selection
authorElentir <elentir@mailoo.org>
Sat, 23 Jan 2010 19:09:36 +0000 (20:09 +0100)
committerElentir <elentir@mailoo.org>
Sat, 23 Jan 2010 19:09:36 +0000 (20:09 +0100)
src/plugins/configsource.c

index 592466f..79fe11e 100644 (file)
@@ -1007,7 +1007,6 @@ int post_net_config(fwnet_profile_t *newprofile, fwnet_interface_t *interface)
                if(ret == GTK_RESPONSE_YES) {
                        return 0;
                } else {
-                       fw_system("netconfig stop");
                        return -1;
                }
        }
@@ -1180,6 +1179,8 @@ int run_net_config(GList **config)
                }               
        }
 
+       fw_system("netconfig stop");
+
        if(select_interface(newinterface) == -1)
                return 0;