diff --git a/lib/ntp-client.js b/lib/ntp-client.js index 4b9a840..e4db7a2 100644 --- a/lib/ntp-client.js +++ b/lib/ntp-client.js @@ -50,6 +50,7 @@ var timeout = setTimeout(function () { client.close(); callback("Timeout waiting for NTP response.", null); + errorFired = true; }, exports.ntpReplyTimeout); // Some errors can happen before/after send() or cause send() to was impossible.