mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 16:17:03 +00:00
Fix panic when modifying addresses during changing address mode
This commit is contained in:
@ -79,6 +79,9 @@ func (store *Store) RebuildMailboxes() (err error) {
|
|||||||
// It doesn't do anything to addresses that are rightfully there.
|
// It doesn't do anything to addresses that are rightfully there.
|
||||||
// It should only be called from the event loop.
|
// It should only be called from the event loop.
|
||||||
func (store *Store) createOrDeleteAddressesEvent() (err error) {
|
func (store *Store) createOrDeleteAddressesEvent() (err error) {
|
||||||
|
store.lock.Lock()
|
||||||
|
defer store.lock.Unlock()
|
||||||
|
|
||||||
labels, err := store.initCounts()
|
labels, err := store.initCounts()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "failed to initialise label counts")
|
return errors.Wrap(err, "failed to initialise label counts")
|
||||||
|
|||||||
@ -26,6 +26,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
|
|||||||
* GODT-894 Fix panic when sending while account is logging in.
|
* GODT-894 Fix panic when sending while account is logging in.
|
||||||
* GODT-831 Fix reporting bug from accounts with empty account name.
|
* GODT-831 Fix reporting bug from accounts with empty account name.
|
||||||
* GODT-991 Fix panic when stopping import progress during loading mailboxes info.
|
* GODT-991 Fix panic when stopping import progress during loading mailboxes info.
|
||||||
|
* GODT-895 Fix panic when modifying addresses during changing address mode.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* GODT-97 Don't log errors caused by SELECT "".
|
* GODT-97 Don't log errors caused by SELECT "".
|
||||||
|
|||||||
Reference in New Issue
Block a user