diff --git a/src/modules/misc/mcserver.js b/src/modules/misc/mcserver.js index 741e0d7..c5987ee 100644 --- a/src/modules/misc/mcserver.js +++ b/src/modules/misc/mcserver.js @@ -149,6 +149,10 @@ function queryServer(ip, port, HANDSHAKE_PACKET) { } }); client.on("timeout", function () {}); + client.on("error", function (err) { + logger.verbose("mcserver", "failed:", err); + resolve({error: err}); + }); } catch (err) { logger.verbose("mcserver", "failed:", err); resolve({error: err});