From 4c111c132454762fd322e550ea8eda303f724e06 Mon Sep 17 00:00:00 2001 From: abd-msyukyu-odoo Date: Fri, 30 Jun 2023 12:59:59 +0000 Subject: [PATCH] [FIX] web_editor: properly close all connections during PTP stop Ensure to close all connections before setting the flag that prevents any notification (notably the notification to disconnect). task-3392096 closes odoo/odoo#127953 X-original-commit: 905307e8d08ed3595a1f965fe846f1fe6ebe9d5c Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/src/js/wysiwyg/PeerToPeer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/wysiwyg/PeerToPeer.js b/addons/web_editor/static/src/js/wysiwyg/PeerToPeer.js index 39ecb806bd7..bf76695b9c1 100644 --- a/addons/web_editor/static/src/js/wysiwyg/PeerToPeer.js +++ b/addons/web_editor/static/src/js/wysiwyg/PeerToPeer.js @@ -173,8 +173,8 @@ export class PeerToPeer { } stop() { - this._stopped = true; this.closeAllConnections(); + this._stopped = true; } getConnectedClientIds() {