mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
Remove panics from the scheduler and simplify start/stop_io()
Hold scheduler lock during the whole procedure of scheduler starting and stopping. This ensures that two processes can't get two read locks in parallel and start loops or send the stop signal twice. Also remove shutdown channels: it is enough to wait for the loop handle without receiving a shutdown signal from the end of the loop.
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fixes
|
||||
|
||||
- simplify `dc_stop_io()` and remove potential panics and race conditions #3273
|
||||
|
||||
## 1.78.0
|
||||
|
||||
### API-Changes
|
||||
|
||||
Reference in New Issue
Block a user