From 600ff763fa8ab2b374466e19033bb6b37ffdfcec Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Mon, 26 Aug 2024 10:14:59 -0400 Subject: [PATCH] fix #840 (#880) --- lib/tasks/rest_dial.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/rest_dial.js b/lib/tasks/rest_dial.js index 23178e52..ee347078 100644 --- a/lib/tasks/rest_dial.js +++ b/lib/tasks/rest_dial.js @@ -39,9 +39,9 @@ class TaskRestDial extends Task { if (this.data.amd) { this.startAmd = cs.startAmd; - this.stopAmd = cs.stopAmd; this.on('amd', this._onAmdEvent.bind(this, cs)); } + this.stopAmd = cs.stopAmd; this._setCallTimer(); await this.awaitTaskDone();