window - fix unhandled error in window tracker

This commit is contained in:
Benjamin Pasero
2020-10-13 08:48:56 +02:00
parent 790ed2b338
commit 1ffbc5a976
@@ -29,6 +29,8 @@ export class ActiveWindowManager extends Disposable {
try {
const windowId = await this.firstActiveWindowIdPromise;
this.activeWindowId = (typeof this.activeWindowId === 'number') ? this.activeWindowId : windowId;
} catch (error) {
// ignore
} finally {
this.firstActiveWindowIdPromise = undefined;
}