diff --git a/os/windows/local/mode/ntp.pm b/os/windows/local/mode/ntp.pm index ee64d1783..efb2fd6e6 100644 --- a/os/windows/local/mode/ntp.pm +++ b/os/windows/local/mode/ntp.pm @@ -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 ($@) {