diff options
author | Angelo Naselli <anaselli@linux.it> | 2015-02-17 23:19:37 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2015-02-17 23:19:37 +0100 |
commit | b68230d7fbe69a5acdec30f31ac99eab8fdd6bce (patch) | |
tree | f5f4220ef873d5b6376baa83ec93efa06af002ef /lib/AdminPanel | |
parent | e1e0bcbedcd38f1a32a2df523fab91195f813dd6 (diff) | |
download | manatools-b68230d7fbe69a5acdec30f31ac99eab8fdd6bce.tar manatools-b68230d7fbe69a5acdec30f31ac99eab8fdd6bce.tar.gz manatools-b68230d7fbe69a5acdec30f31ac99eab8fdd6bce.tar.bz2 manatools-b68230d7fbe69a5acdec30f31ac99eab8fdd6bce.tar.xz manatools-b68230d7fbe69a5acdec30f31ac99eab8fdd6bce.zip |
return instead of exit should be enough
Diffstat (limited to 'lib/AdminPanel')
-rw-r--r-- | lib/AdminPanel/Module/Firewall.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AdminPanel/Module/Firewall.pm b/lib/AdminPanel/Module/Firewall.pm index cdadb389..8158dc2b 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()}) { |