Skip to content

Commit 6f1aa98

Browse files
committed
udp client: unref the socket
1 parent 9bf68da commit 6f1aa98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ Tracker.prototype._requestUdp = function (requestUrl, opts) {
173173
var timeout = setTimeout(function () {
174174
error('tracker request timed out')
175175
}, 15000)
176+
socket.unref()
176177

177178
if (timeout.unref) {
178179
timeout.unref()

0 commit comments

Comments
 (0)