Skip to content

Commit c8fcf81

Browse files
committed
fix for node 0.10
1 parent a49a0d8 commit c8fcf81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/udp-tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ UDPTracker.prototype._request = function (opts) {
219219
toUInt64(opts.downloaded),
220220
opts.left != null ? toUInt64(opts.left) : new Buffer('FFFFFFFFFFFFFFFF', 'hex'),
221221
toUInt64(opts.uploaded),
222-
common.toUInt32(common.EVENTS[opts.event]),
222+
common.toUInt32(common.EVENTS[opts.event] || 0),
223223
common.toUInt32(0), // ip address (optional)
224224
common.toUInt32(0), // key (optional)
225225
common.toUInt32(opts.numwant),

0 commit comments

Comments
 (0)