From 2dcb4bc57188c6b182f80999d8e3a42047fb7961 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 13 Feb 2017 17:23:11 +0100 Subject: [PATCH] + Fix #590 --- os/windows/local/mode/ntp.pm | 2 ++ 1 file changed, 2 insertions(+) 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 ($@) {