This commit is contained in:
Feross Aboukhadijeh 2018-04-29 21:20:51 -07:00 committed by GitHub
parent 65c02dd153
commit afcb6df085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -656,7 +656,7 @@ Server.prototype._onRequest = function (params, cb) {
Server.prototype._onAnnounce = function (params, cb) {
var self = this
if (self._filter) {
self._filter(params.info_hash, params, function (err) {
// Presence of `err` means that this announce request is disallowed
@ -673,7 +673,7 @@ Server.prototype._onAnnounce = function (params, cb) {
announce(swarm)
})
}
// Get existing swarm, or create one if one does not exist
function getOrCreateSwarm (cb) {
self.getSwarm(params.info_hash, function (err, swarm) {