From 6f1aa981d42169c794b97879bbc2d3e6cf3c8d5d Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 23 May 2014 20:34:31 -0700 Subject: [PATCH] udp client: unref the socket --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 5bf63a6..ca8a0e2 100644 --- a/index.js +++ b/index.js @@ -173,6 +173,7 @@ Tracker.prototype._requestUdp = function (requestUrl, opts) { var timeout = setTimeout(function () { error('tracker request timed out') }, 15000) + socket.unref() if (timeout.unref) { timeout.unref()