Skip to content

Commit 0350aad

Browse files
authored
add hasEmittedCallEndedStatus to cleanup (#97)
1 parent d0e5219 commit 0350aad

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vapi-ai/web",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "",
55
"main": "dist/vapi.js",
66
"types": "dist/vapi.d.ts",

vapi.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export default class Vapi extends VapiEventEmitter {
172172

173173
private cleanup() {
174174
this.started = false;
175+
this.hasEmittedCallEndedStatus = false;
175176
this.call?.destroy();
176177
this.call = null;
177178
this.speakingTimeout = null;

0 commit comments

Comments
 (0)