meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
1 changed files with
0 additions and
5 deletions
-
src/helpers/hardReset.js
|
|
@ -5,12 +5,7 @@ import db from 'helpers/db' |
|
|
|
import { delay } from 'helpers/promise' |
|
|
|
|
|
|
|
export default async function hardReset() { |
|
|
|
// TODO: wait for the libcoreHardReset to be finished
|
|
|
|
// actually, libcore doesnt goes back to js thread
|
|
|
|
await libcoreHardReset.send() |
|
|
|
|
|
|
|
// await Promise.race([libcoreHardReset.send().toPromise(), delay(500)])
|
|
|
|
|
|
|
|
disableDBMiddleware() |
|
|
|
db.resetAll() |
|
|
|
await delay(500) |
|
|
|