1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Don't start the timer if voip not supported

This commit is contained in:
David Baker
2021-03-09 14:39:21 +00:00
parent 8375638d76
commit 07f15b41a2

View File

@@ -5150,10 +5150,12 @@ MatrixClient.prototype.startClient = async function(opts) {
} }
// periodically poll for turn servers if we support voip // periodically poll for turn servers if we support voip
if (this._supportsVoip) {
this._checkTurnServersIntervalID = setInterval(() => { this._checkTurnServersIntervalID = setInterval(() => {
this._checkTurnServers(); this._checkTurnServers();
}, TURN_CHECK_INTERVAL); }, TURN_CHECK_INTERVAL);
this._checkTurnServers(); this._checkTurnServers();
}
if (this._syncApi) { if (this._syncApi) {
// This shouldn't happen since we thought the client was not running // This shouldn't happen since we thought the client was not running