mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
It should not be possible to reach this state on purpose. But due to scheduling and synchronization variances, it is possible in theory that a UserDeathEvent can occur at the same time as the bridge is closing, causing a call to `User.Close()` to be executed 2 times. To avoid this in the future we just clear the map after all the channels have been closed.
15 KiB
15 KiB