diff --git a/storage/purge.go b/storage/purge.go index e6aabdffa99986fffcc01d3f213fc820f5f95a98..b0d8fc889641530a56a9fd8c554100f2a3df4a7a 100644 --- a/storage/purge.go +++ b/storage/purge.go @@ -61,11 +61,11 @@ func Purge(_ js.Value, args []js.Value) interface{} { } // Verify all Cmix followers are stopped - // if n := atomic.LoadUint64(&numClientsRunning); n != 0 { - // utils.Throw(utils.TypeError, errors.Errorf( - // "%d cMix followers running; all need to be stopped", n)) - // return nil - // } + if n := atomic.LoadUint64(&numClientsRunning); n != 0 { + utils.Throw(utils.TypeError, errors.Errorf( + "%d cMix followers running; all need to be stopped", n)) + return nil + } // Get all indexedDb database names databaseList, err := GetIndexedDbList()