fix crashing error with some media timeout scenarios (#1108)

This commit is contained in:
Dave Horton
2025-03-05 09:48:40 -05:00
committed by GitHub
parent fa5fc1af9f
commit 29de4b8878

View File

@@ -907,7 +907,7 @@ class TaskDial extends Task {
}
_handleMediaTimeout(evt) {
if (evt.reason === 'MEDIA_TIMEOUT' && this.sd && this.bridged) {
if (evt?.reason === 'MEDIA_TIMEOUT' && this.sd && this.bridged) {
this.kill(this.cs, KillReason.MediaTimeout);
}
}