提交 08d82113 编写于 作者: B Benjamin Pasero

storage - flush with delay of 0 on shutdown

上级 d8c42ed0
......@@ -204,7 +204,7 @@ export class Storage extends Disposable implements IStorage {
// even if there is an error flushing. We must always ensure
// the DB is closed to avoid corruption.
const onDone = () => this.storage.close();
return this.flushDelayer.trigger(() => this.flushPending()).then(onDone, onDone);
return this.flushDelayer.trigger(() => this.flushPending(), 0 /* immediately */).then(onDone, onDone);
}
private flushPending(): Thenable<void> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册