Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit f3939b9

Browse files
Fix bug with pull-cont source detection
1 parent 103839f commit f3939b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/plugins/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,9 @@ exports.init = function (ssb, config) {
189189
const requesterId = peer.id
190190
const feedId = opts.id
191191
if (graph && feedId !== requesterId && graph[feedId] && graph[feedId][requesterId] === false) {
192-
cb(null, function () {
192+
cb(null, function (abort, cb) {
193193
// just give them the cold shoulder
194+
// `abort` and `cb` are passed to avoid a pull-cont error
194195
})
195196
} else {
196197
cb(null, pull(

0 commit comments

Comments
 (0)