[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) <dmo@odoo.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user