Fixed an error on closing a call

This commit is contained in:
Sagi Dayan 2020-04-13 18:34:52 -04:00
parent d73ad6491c
commit 21ef1e25b2

View file

@ -119,7 +119,7 @@ class CallSession {
this.callModel.save();
}
if (this.user_1.socket) this.user_1.socket.close();
if (this.user_2.socket) this.user_1.socket.close();
if (this.user_2.socket) this.user_2.socket.close();
clearInterval(this.heartbeat);
this.onCallEndedCallback(this.callId);
}