Skip to content

Commit

Permalink
fix(announce): fixed announce issue
Browse files Browse the repository at this point in the history
  • Loading branch information
taobataoma committed Jun 26, 2018
1 parent 3d21c57 commit a7bd269
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ exports.announce = function (req, res) {
function getPeers(count, peers) {
var ps = [];

if (!req.seeder && event(query.event) !== EVENT_STOPPED && event(query.event) !== EVENT_COMPLETED) {
if (event(query.event) !== EVENT_STOPPED) {
mtDebug.debugGreen('---------------GET PEERS LIST----------------', 'ANNOUNCE', true, req.passkeyuser);
mtDebug.debugRed('want.count = ' + count, 'ANNOUNCE', true, req.passkeyuser);
mtDebug.debugRed('peers.length = ' + peers.length, 'ANNOUNCE', true, req.passkeyuser);
Expand Down

0 comments on commit a7bd269

Please sign in to comment.