Open gr2m opened 8 years ago
we now call .disconnect()
in .reset()
. disconnect checks if there is an active replication and cancels it, but I see a potential issue when for example .pull
and .push
are called at the same time, as they both set state.replication
. So .disconnect()
will only cancel the last replication, but not the other
also .reset()
calls PouchDB’s .destroy()
method and I would expect that it’s cancelling all pending requests by itself