From ad36d893e8acfad9d102ff5f7b01bc3181a06dc2 Mon Sep 17 00:00:00 2001 From: Nicolas Bayet Date: Wed, 16 Nov 2022 10:30:41 +0000 Subject: [PATCH] [FIX] web_editor: prevent disconnection from peer to peer Before this commit, once a user was disconnected from internet (eg. network failure, laptop screen closed), the code disconnected the user from the peer to peer network and upon reconnection to the internet network, the code did not try to reconnect to the peer to peer network. This created a network partion in the peer to peer network each time a user disconnected and reconnected to the internet network. When there is a partition in the peer to peer network, the last subnet to write to the record erased the changes of another subnet without notification. This commit prevent the code to disconnect from the peer to peer network when there is any disconnection signal triggered. closes odoo/odoo#105900 X-original-commit: 8bce8cd53d1c6da89fce8c2f8b64615168d45a0d Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/src/js/wysiwyg/wysiwyg.js | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index 1e9e686894f..5090d4691a9 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -2399,7 +2399,6 @@ const Wysiwyg = Widget.extend({ } this._isOnline = false; - this.ptp.stop(); this.preSavePromise = new Promise((resolve, reject) => { this.preSavePromiseResolve = resolve; this.preSavePromiseReject = reject;