Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (2 * otherSpeed > speed || otherSpeed > minSpeed) continue
min = other
minSpeed = otherSpeed
}
if (!min) return false
for (i = 0; i < r.length; i++) {
if (r[i] === min) r[i] = null
}
for (i = 0; i < min.requests.length; i++) {
var req = min.requests[i]
if (req.piece !== index) continue
pieces[index].cancel((req.offset / piece.BLOCK_SIZE) | 0)
}
engine.emit('hotswap', min, wire, index)
return true
}