summaryrefslogtreecommitdiffstats
path: root/lib/network/drakconnect/delete.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-14 12:40:56 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-14 12:40:56 +0000
commit90a1ea8f11a3e6273a44be471752143944fe1e76 (patch)
treee1d10c0291d6958f19aeaab8bce39a2a25bbe8b1 /lib/network/drakconnect/delete.pm
parentd0493e671689854dfdc016356f09d81962bd5044 (diff)
downloaddrakx-net-90a1ea8f11a3e6273a44be471752143944fe1e76.tar
drakx-net-90a1ea8f11a3e6273a44be471752143944fe1e76.tar.gz
drakx-net-90a1ea8f11a3e6273a44be471752143944fe1e76.tar.bz2
drakx-net-90a1ea8f11a3e6273a44be471752143944fe1e76.tar.xz
drakx-net-90a1ea8f11a3e6273a44be471752143944fe1e76.zip
do not run exit in sub-modules directly
Diffstat (limited to 'lib/network/drakconnect/delete.pm')
-rw-r--r--lib/network/drakconnect/delete.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/network/drakconnect/delete.pm b/lib/network/drakconnect/delete.pm
index e8ac7ab..b8d0689 100644
--- a/lib/network/drakconnect/delete.pm
+++ b/lib/network/drakconnect/delete.pm
@@ -10,7 +10,7 @@ sub del_intf {
my ($intf2delete, $failure);
if (!keys %{$net->{ifcfg}}) {
$in->ask_warn(N("Error"), N("No ethernet network adapter has been detected on your system. Please run the hardware configuration tool."));
- $in->exit(0);
+ return;
}
my @all_cards = network::connection::ethernet::get_eth_cards($modules_conf);
my %names = network::connection::ethernet::get_eth_cards_names(@all_cards);
@@ -63,7 +63,6 @@ sub del_intf {
},
});
$wiz->safe_process($in);
- $in->exit(0);
}
1;