Skip to content

Commit

Permalink
fix(mac): remove wifi stats as they cause hangs every 10 seconds
Browse files Browse the repository at this point in the history
The getWiFiStats causes screen freezes every 10 seconds for 2-4 seconds,
thus temporarily remove them on mac.

Closes: #595
  • Loading branch information
csett86 authored and damencho committed Jun 11, 2021
1 parent bad5d06 commit 9afadd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/features/conference/components/Conference.js
Expand Up @@ -266,7 +266,11 @@ class Conference extends Component<Props, State> {
setupAlwaysOnTopRender(this._api);
}

setupWiFiStats(iframe);
// Disable WiFiStats on mac due to jitsi-meet-electron#585
if (window.jitsiNodeAPI.platform !== 'darwin') {
setupWiFiStats(iframe);
}

setupPowerMonitorRender(this._api);
}

Expand Down
3 changes: 3 additions & 0 deletions app/preload/preload.js
@@ -1,3 +1,5 @@
/* global process */

const createElectronStorage = require('redux-persist-electron-storage');
const { ipcRenderer, remote } = require('electron');
const os = require('os');
Expand All @@ -11,6 +13,7 @@ window.jitsiNodeAPI = {
createElectronStorage,
osUserInfo: os.userInfo,
openExternalLink,
platform: process.platform,
jitsiMeetElectronUtils,
getLocale: remote.app.getLocale,
ipc: {
Expand Down

0 comments on commit 9afadd9

Please sign in to comment.