From 053a1b7e907d220567bdd0e7ca55dc12c9fdabab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Cervi=C3=B1o?= Date: Tue, 22 Oct 2019 12:15:46 +0200 Subject: [PATCH] Fix Stats retrieved from Ackuaria when connection is closed --- erizo_controller/erizoJS/models/Connection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/erizo_controller/erizoJS/models/Connection.js b/erizo_controller/erizoJS/models/Connection.js index f643bf1c23..e28db648af 100644 --- a/erizo_controller/erizoJS/models/Connection.js +++ b/erizo_controller/erizoJS/models/Connection.js @@ -385,6 +385,7 @@ class Connection extends events.EventEmitter { getStats(callback) { if (!this.wrtc) { + callback('{}'); return true; } return this.wrtc.getStats(callback);