Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
davehorton committed Jan 14, 2025
1 parent fe68d2a commit a6b8a98
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/session/call-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -2686,6 +2686,14 @@ Duration=${duration} `
}
}

async startMaxCallDurationTimer(timeLimit) {
if (!this._maxCallDurationTimer && timeLimit > 0) {
this.timeLimit = timeLimit;
this._maxCallDurationTimer = setTimeout(this._onMaxCallDuration.bind(this), timeLimit * 1000);
this.logger.debug(`CallSession:startMaxCallDurationTimer - started max call duration timer for ${timeLimit}s`);
}
}

/**
* _onMaxCallDuration - called when the call has reached the maximum duration
*/
Expand Down

0 comments on commit a6b8a98

Please sign in to comment.