Fix a stray error printed due to not catching (#723)
This commit is contained in:
parent
6da02c6eee
commit
fbe575c577
@ -101,7 +101,9 @@ class AnkiConnect {
|
|||||||
if (this._remoteVersion < this._localVersion) {
|
if (this._remoteVersion < this._localVersion) {
|
||||||
if (this._versionCheckPromise === null) {
|
if (this._versionCheckPromise === null) {
|
||||||
const promise = this._invoke('version');
|
const promise = this._invoke('version');
|
||||||
promise.finally(() => { this._versionCheckPromise = null; });
|
promise
|
||||||
|
.catch(() => {})
|
||||||
|
.finally(() => { this._versionCheckPromise = null; });
|
||||||
this._versionCheckPromise = promise;
|
this._versionCheckPromise = promise;
|
||||||
}
|
}
|
||||||
this._remoteVersion = await this._versionCheckPromise;
|
this._remoteVersion = await this._versionCheckPromise;
|
||||||
|
Loading…
Reference in New Issue
Block a user