mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
Other: Factory reset
This commit is contained in:
@ -151,6 +151,15 @@ func (vault *Vault) DeleteUser(userID string) error {
|
||||
}
|
||||
|
||||
func (vault *Vault) Close() error {
|
||||
vault.refLock.Lock()
|
||||
defer vault.refLock.Unlock()
|
||||
|
||||
if len(vault.ref) > 0 {
|
||||
return errors.New("vault is still in use")
|
||||
}
|
||||
|
||||
vault.gcm = nil
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user