Skip to content

Commit

Permalink
fix(screenshare): Windows screenshare tracker crash
Browse files Browse the repository at this point in the history
* fix windows screen-share tracker crash

* Bump version
  • Loading branch information
andrei-gavrilescu authored Apr 16, 2020
1 parent 406ad1f commit fd05a9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 4 additions & 0 deletions screensharing/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit fd05a9b

Please sign in to comment.