We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea2a13 commit b5d8748Copy full SHA for b5d8748
lib/udp-tracker.js
@@ -82,6 +82,7 @@ UDPTracker.prototype._request = function (opts) {
82
var socket = dgram.createSocket('udp4')
83
84
var cleanup = function () {
85
+ if (!socket) return
86
self._cleanupFns.splice(self._cleanupFns.indexOf(cleanup), 1)
87
if (timeout) {
88
clearTimeout(timeout)
0 commit comments