Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5691 from matrix-org/dbkr/log_turn_cred_expiry
Browse files Browse the repository at this point in the history
Log when turn creds expire
  • Loading branch information
dbkr committed Feb 27, 2021
2 parents 11ba9e0 + 90af6dd commit 9722091
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CallHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,8 @@ export default class CallHandler {
const mappedRoomId = (await VoipUserMapper.sharedInstance().getOrCreateVirtualRoomForRoom(roomId)) || roomId;
logger.debug("Mapped real room " + roomId + " to room ID " + mappedRoomId);

const timeUntilTurnCresExpire = MatrixClientPeg.get().getTurnServersExpiry() - Date.now();
console.log("Current turn creds expire in " + timeUntilTurnCresExpire + " seconds");
const call = createNewMatrixCall(MatrixClientPeg.get(), mappedRoomId);

this.calls.set(roomId, call);
Expand Down

0 comments on commit 9722091

Please sign in to comment.