Skip to content

Commit 9b79929

Browse files
committed
Bugfix for ending call
1 parent fd035c3 commit 9b79929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ app.ws('/connection', (ws) => {
142142
console.log(`Twilio -> Media stream ${streamSid} ended.`.underline.red);
143143

144144
for (const k in Object.keys(activeCalls)) {
145-
if (activeCalls[k] == callSid){
145+
if (activeCalls[k] && activeCalls[k].callSid == callSid) {
146146
delete activeCalls[k];
147147
return;
148148
}

0 commit comments

Comments
 (0)