SDA-3520 Kill screen share indicator frame before reloading (#1310)

This commit is contained in:
Salah Benmoussati 2021-12-30 11:01:07 +01:00 committed by GitHub
parent 3cbd7dbf2c
commit 3b5b59f945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -402,9 +402,13 @@ export const sanitize = (windowName: string): void => {
// reset the badge count whenever an user refreshes the electron client
showBadgeCount(0);
// Terminates the screen snippet process on reload
// Terminates the screen snippet process and screen share indicator frame on reload
if (!isMac || !isLinux) {
logger.info(
'window-utils: Terminating screen snippet and screen share indicator frame utils',
);
screenSnippet.killChildProcess();
windowHandler.execCmd(windowHandler.screenShareIndicatorFrameUtil, []);
}
// Closes all the child windows
windowHandler.closeAllWindows();