Closed jimpick closed 6 years ago
Here's a possible fix:
diff --git a/index.js b/index.js
index 9965fde..029acf2 100644
--- a/index.js
+++ b/index.js
@@ -584,11 +584,11 @@ HyperDB.prototype._ready = function (cb) {
if (err) return done(err)
self._localWriter = self._writers[self.feeds.indexOf(self.local)]
+ if (self._contentStorage) self._localWriter._ensureContentFeed(null)
self._localWriter.head(function (err) {
if (err) return done(err)
if (!self._contentStorage) return done(null)
- self._localWriter._ensureContentFeed(null)
self.localContent = self._localWriter._contentFeed
self.localContent.ready(done)
})
added your fix to master
re-open if it still happens :)
Here's a test case: