@onereach/step-voice 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dst/step.js +2 -2
- package/package.json +1 -1
package/dst/step.js
CHANGED
|
@@ -133,8 +133,8 @@ class ConvStep extends step_1.default {
|
|
|
133
133
|
}
|
|
134
134
|
async waitConvEnd() {
|
|
135
135
|
const workerThread = this.process.getThread(this.workerThreadId);
|
|
136
|
-
const
|
|
137
|
-
if (!this.isGlobal && this.thread.id !== 'main' && this.thread.id ===
|
|
136
|
+
const workerState = await workerThread?.state;
|
|
137
|
+
if (!this.isGlobal && this.thread.id !== 'main' && this.thread.id === workerState?.thread) {
|
|
138
138
|
this.log.debug('conv.wait for end', this.conversation);
|
|
139
139
|
this.gotoState({ ...this.state, name: 'waitGlobEnd', direct: true });
|
|
140
140
|
}
|