mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Try again to kill a pptp connection
This commit is contained in:
@@ -9,8 +9,14 @@ require './pptp-client-lib.pl';
|
||||
($conn) = grep { $_->[0] eq $in{'tunnel'} } @conns;
|
||||
$conn || &error($text{'disc_egone'});
|
||||
&kill_logged('HUP', $conn->[1]) || &error($text{'disc_ekill'});
|
||||
&webmin_log("disc", undef, $in{'tunnel'});
|
||||
sleep(3);
|
||||
@conns = &list_connected();
|
||||
($conn) = grep { $_->[0] eq $in{'tunnel'} } @conns;
|
||||
if ($conn) {
|
||||
# Not dead .. kill harder
|
||||
&kill_logged('KILL', $conn->[1]);
|
||||
}
|
||||
&webmin_log("disc", undef, $in{'tunnel'});
|
||||
&redirect("");
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user