mirror of
https://github.com/LibreOffice/online.git
synced 2025-08-16 17:42:05 +00:00
05620be4c5d0369d160ac79f4eaee00013229324

When a client disconnects, we autosave only when there are no other sessions. The idea being that it'd be wasteful to save on every client disconnect, so long that we have a later chance of saving. This doesn't hold, however, when the only other remaining session is one that had just connected and hasn't loaded a view yet. WSD wouldn't know about this, but when unloading the disconnecting session, Kit will exit the process as the last view is gone, losing all unsaved changes. This patch tracks the sessions in WSD that have loaded a view and takes that into account when deciding to autosave on disconnect or not, thereby fixing this corner case that may result in data loss. Change-Id: I699721f2d710128ed4db65943b9357dff54380f5 Reviewed-on: https://gerrit.libreoffice.org/33126 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
LibreOffice on-line. This project has several components: wsd/ The Web Services Daemon - which accepts external connections. kit/ The client which lives in its own chroot and renders documents. common/ Shared code between these processes. loleaflet/ The client side JavaScript component. It is recommended to read these files: wsd/README loleaflet/README Enjoy.
Description
Languages
JavaScript
48%
C++
32.6%
HTML
6.7%
CSS
5.8%
Java
2.3%
Other
4.5%