Browse Source
Merge pull request #3 from meriadec/develop
Remove unused comments
master
KhalilBellakrid
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) |
|
|
|