You've already forked matrix-js-sdk
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:
@@ -5150,10 +5150,12 @@ MatrixClient.prototype.startClient = async function(opts) {
|
||||
}
|
||||
|
||||
// periodically poll for turn servers if we support voip
|
||||
this._checkTurnServersIntervalID = setInterval(() => {
|
||||
if (this._supportsVoip) {
|
||||
this._checkTurnServersIntervalID = setInterval(() => {
|
||||
this._checkTurnServers();
|
||||
}, TURN_CHECK_INTERVAL);
|
||||
this._checkTurnServers();
|
||||
}, TURN_CHECK_INTERVAL);
|
||||
this._checkTurnServers();
|
||||
}
|
||||
|
||||
if (this._syncApi) {
|
||||
// This shouldn't happen since we thought the client was not running
|
||||
|
||||
Reference in New Issue
Block a user