mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 10:29:30 +01:00
ProcessManager: remove unnecessary die
This commit is contained in:
parent
a0f3d28b80
commit
88d2c283a9
@ -195,7 +195,6 @@ sub execute_process {
|
|||||||
local $SIG{ALRM} = sub { die "Process `$context->{commands}->[0]` timed-out" };
|
local $SIG{ALRM} = sub { die "Process `$context->{commands}->[0]` timed-out" };
|
||||||
alarm $timeout;
|
alarm $timeout;
|
||||||
$subref->($context);
|
$subref->($context);
|
||||||
die if $@;
|
|
||||||
};
|
};
|
||||||
alarm 0;
|
alarm 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user