lib/replicate.js
function (cb) {
    if (done || !localSentWants || !localSentHeads || !remoteSentWants || !remoteSentHeads) return cb()
    done = true
    if (!live) return stream.finalize(cb)
    sendChanges()
    cb()
  }
function (cb) {
    if (done || !localSentWants || !localSentHeads || !remoteSentWants || !remoteSentHeads) return cb()
    done = true
    if (!live) return stream.finalize(cb)
    sendChanges()
    cb()
  }
function ( cb ) { if ( done || ! localSentWants || ! localSentHeads || ! remoteSentWants || ! remoteSentHeads ) return cb ( ) done = true if ( ! live ) return stream . finalize ( cb ) sendChanges ( ) cb ( ) }
Check if replication is finished.
Check if replication is finished .