diff --git a/index.js b/index.js index 32e3b583..e962dcf7 100644 --- a/index.js +++ b/index.js @@ -342,7 +342,7 @@ class Hypercore extends EventEmitter { this._setupSession(parent) } - if (opts.exclusive) { + if (opts.exclusive && opts.writable !== false) { this.exclusive = true await this.core.lockExclusive() }