+ Fix #590
This commit is contained in:
parent
e75c5304d9
commit
2dcb4bc571
|
@ -101,6 +101,8 @@ sub run {
|
|||
my %ntp;
|
||||
# Need to set following patch: https://rt.cpan.org/Public/Bug/Display.html?id=59607
|
||||
eval {
|
||||
local $SIG{__WARN__} = sub { die $_[0] };
|
||||
|
||||
%ntp = Net::NTP::get_ntp_response($ntp_hostname, $self->{option_results}->{ntp_port});
|
||||
};
|
||||
if ($@) {
|
||||
|
|
Loading…
Reference in New Issue