Open siepra opened 2 years ago
This is causing issues for us so it would be awesome to get a fix soon!
Taking a look now
For now I'll make a patch that just doesn't error when closing the store during replication - by having .close wait for currently processing replication to finish. In future versions it will be good to do things like abort ipfs block/dag calls to stop the replication more abruptly.
Patched with version 0.28.5
Thanks!!
orbit-db: 0.28.4 orbit-db-store: 4.3.3
Here is the demo https://github.com/siepra/closeorbitdb
Also I tried enhancing the if statement in
Store.js:98
withif (this._oplog &&
but going further results in different error (also reachable in the sample repo I posted above)