We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8375638 commit 07f15b4Copy full SHA for 07f15b4
src/client.js
@@ -5150,10 +5150,12 @@ MatrixClient.prototype.startClient = async function(opts) {
5150
}
5151
5152
// periodically poll for turn servers if we support voip
5153
- this._checkTurnServersIntervalID = setInterval(() => {
+ if (this._supportsVoip) {
5154
+ this._checkTurnServersIntervalID = setInterval(() => {
5155
+ this._checkTurnServers();
5156
+ }, TURN_CHECK_INTERVAL);
5157
this._checkTurnServers();
- }, TURN_CHECK_INTERVAL);
- this._checkTurnServers();
5158
+ }
5159
5160
if (this._syncApi) {
5161
// This shouldn't happen since we thought the client was not running
0 commit comments