mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
fix(GODT-2442): Remove unnecessary call to go-sync
This is not required in this call since address mode changes are always proceeded by the removal of the IMAP user and then the creation of a new IMAP user which will trigger the sync again.
This commit is contained in:
@ -284,7 +284,6 @@ func (user *User) SetAddressMode(_ context.Context, mode vault.AddressMode) erro
|
||||
|
||||
user.syncAbort.Abort()
|
||||
user.pollAbort.Abort()
|
||||
defer user.goSync()
|
||||
|
||||
return safe.LockRet(func() error {
|
||||
if err := user.vault.SetAddressMode(mode); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user