Created
August 24, 2022 16:24
-
-
Save davehorton/d5bb609ce2bef19c680c8de8f92a560d to your computer and use it in GitHub Desktop.
fix race condition in conference with waitHook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/tasks/conference.js b/lib/tasks/conference.js | |
| index 655706f..2132a63 100644 | |
| --- a/lib/tasks/conference.js | |
| +++ b/lib/tasks/conference.js | |
| @@ -541,6 +541,9 @@ class Conference extends Task { | |
| } | |
| this.logger.debug(`Conference:_playHook: executing ${tasks.length} tasks`); | |
| + /* we might have been killed while off fetching waitHook */ | |
| + if (this.killed) return []; | |
| + | |
| if (tasks.length > 0) { | |
| this._playSession = new ConfirmCallSession({ | |
| logger: this.logger, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment