mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 20:56:51 +00:00
fix: race condition when updating user auth
This commit is contained in:
committed by
Michal Horejsek
parent
51846efed5
commit
8f15041d8f
@ -217,12 +217,7 @@ func (c *client) sendAuth(auth *Auth) {
|
||||
c.accessToken = auth.accessToken
|
||||
}
|
||||
|
||||
go func(auth ClientAuth) {
|
||||
c.cm.clientAuths <- auth
|
||||
}(ClientAuth{
|
||||
UserID: c.userID,
|
||||
Auth: auth,
|
||||
})
|
||||
c.cm.HandleAuth(ClientAuth{UserID: c.userID, Auth: auth})
|
||||
}
|
||||
|
||||
// AuthInfo gets authentication info for a user.
|
||||
|
||||
Reference in New Issue
Block a user