Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronize mailimap deletion against async operations
Right now main thread can free mailimap while its background thread is still performing operations on it. Fix it by moving deletion to the worker thread and making sure nobody uses stale pointers.
- Loading branch information
Showing
1 changed file
with
85 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters