From fd05a9b6ffb430cdeea1d5667aa102ad88701046 Mon Sep 17 00:00:00 2001 From: Andrei Gavrilescu <51706180+andrei-gavrilescu@users.noreply.github.com> Date: Thu, 16 Apr 2020 12:01:47 +0300 Subject: [PATCH] fix(screenshare): Windows screenshare tracker crash * fix windows screen-share tracker crash * Bump version --- package-lock.json | 2 +- package.json | 2 +- screensharing/main.js | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 78bf5668..f191e1e9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "jitsi-meet-electron-utils", - "version": "2.0.4", + "version": "2.0.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0adea80f..ef669fda 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jitsi-meet-electron-utils", - "version": "2.0.4", + "version": "2.0.5", "description": "Utilities for jitsi-meet-electron project", "main": "index.js", "scripts": { diff --git a/screensharing/main.js b/screensharing/main.js index 85da9fff..4f427fc2 100644 --- a/screensharing/main.js +++ b/screensharing/main.js @@ -94,6 +94,10 @@ class ScreenShareMainHook { } }); + this._screenShareTracker.on('closed', () => { + this._screenShareTracker = undefined; + }); + // Prevent newly created window to take focus from main application. this._screenShareTracker.once('ready-to-show', () => { if (this._screenShareTracker && !this._screenShareTracker.isDestroyed()) {