cozy-labs / cozy-desktop

File Synchronisation for Cozy on Desktop and Laptop
https://cozy-labs.github.io/cozy-desktop/
GNU Affero General Public License v3.0
99 stars 45 forks source link

fix: Await full sync stop before closing the app #2300

Closed taratatach closed 1 year ago

taratatach commented 1 year ago

When closing the application from a user request (via the "Quit" button for example), we first stop the synchronization to avoid corrupting data.

However, we were not waiting for the synchronization to be fully stopped (i.e. it is an asynchronous process) before closing the application. We believe this might be the source of crashes on Windows.

Please make sure the following boxes are checked: