mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-31 10:31:36 +00:00
udp client: unref the socket
This commit is contained in:
parent
9bf68da828
commit
6f1aa981d4
1
index.js
1
index.js
@ -173,6 +173,7 @@ Tracker.prototype._requestUdp = function (requestUrl, opts) {
|
|||||||
var timeout = setTimeout(function () {
|
var timeout = setTimeout(function () {
|
||||||
error('tracker request timed out')
|
error('tracker request timed out')
|
||||||
}, 15000)
|
}, 15000)
|
||||||
|
socket.unref()
|
||||||
|
|
||||||
if (timeout.unref) {
|
if (timeout.unref) {
|
||||||
timeout.unref()
|
timeout.unref()
|
||||||
|
Loading…
Reference in New Issue
Block a user