From 21ef1e25b2b155241cc856ffb5a6c6b30d34386b Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Mon, 13 Apr 2020 18:34:52 -0400 Subject: [PATCH] Fixed an error on closing a call --- app/Controllers/Ws/SignalingController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/Ws/SignalingController.js b/app/Controllers/Ws/SignalingController.js index f4931b8..9a8f80e 100644 --- a/app/Controllers/Ws/SignalingController.js +++ b/app/Controllers/Ws/SignalingController.js @@ -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); }