aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-02-17 23:19:37 +0100
committerAngelo Naselli <anaselli@linux.it>2015-02-17 23:19:37 +0100
commitb68230d7fbe69a5acdec30f31ac99eab8fdd6bce (patch)
treef5f4220ef873d5b6376baa83ec93efa06af002ef
parente1e0bcbedcd38f1a32a2df523fab91195f813dd6 (diff)
downloadcolin-keep-b68230d7fbe69a5acdec30f31ac99eab8fdd6bce.tar
colin-keep-b68230d7fbe69a5acdec30f31ac99eab8fdd6bce.tar.gz
colin-keep-b68230d7fbe69a5acdec30f31ac99eab8fdd6bce.tar.bz2
colin-keep-b68230d7fbe69a5acdec30f31ac99eab8fdd6bce.tar.xz
colin-keep-b68230d7fbe69a5acdec30f31ac99eab8fdd6bce.zip
return instead of exit should be enough
-rw-r--r--lib/AdminPanel/Module/Firewall.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AdminPanel/Module/Firewall.pm b/lib/AdminPanel/Module/Firewall.pm
index cdadb38..8158dc2 100644
--- a/lib/AdminPanel/Module/Firewall.pm
+++ b/lib/AdminPanel/Module/Firewall.pm
@@ -548,7 +548,7 @@ Please select which network activities should be watched."),
} @l,
]);
- exit() if($retval == 0);
+ return if($retval == 0);
for my $server(@{$self->wdg_ifw()})
{
@@ -750,7 +750,7 @@ sub choose_allowed_services {
(map { { text => $_->{name}, val => \$_->{on}, type => 'bool', disabled => sub { $disabled }, id => $_->{id} } } @l),
];
- exit() if(!$self->ask_AllowedServices($dialog_data, $items));
+ return if(!$self->ask_AllowedServices($dialog_data, $items));
for my $server(@{$self->wdg_servers()})
{