Skip to content

Commit

Permalink
client: fix email existence check
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 12, 2024
1 parent 4f0c15f commit 3a6397f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/connector/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (gc *GMClient) Connect(ctx context.Context) {
},
})
return
} else if gc.Meta.Session.HasCookies() && gc.Client.Config.GetDeviceInfo().GetEmail() == "" {
} else if gc.Meta.Session.AuthNetwork() == util.GoogleNetwork && gc.Client.Config.GetDeviceInfo().GetEmail() == "" {
zerolog.Ctx(ctx).Error().Msg("No email in config, invalidating session")
go gc.invalidateSession(ctx, status.BridgeState{
StateEvent: status.StateBadCredentials,
Expand Down

0 comments on commit 3a6397f

Please sign in to comment.