udp client: unref the socket

This commit is contained in:
Feross Aboukhadijeh 2014-05-23 20:34:31 -07:00
parent 9bf68da828
commit 6f1aa981d4

View File

@ -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()