From bd755aca7900972d4810e0a03f7eafa552932648 Mon Sep 17 00:00:00 2001 From: Chris Molozian Date: Wed, 16 Jan 2019 12:21:20 +0000 Subject: [PATCH] Unlock GPGS certs cache in social client. --- CHANGELOG.md | 1 + social/social.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b88b2ee1..ea04e3d39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr ### Fixed - Set gateway timeout to match idle timeout value. - Reliably release database resources before moving from one query to the next. +- Unlock GPGS certs cache in social client. ## [2.3.1] - 2019-01-04 ### Added diff --git a/social/social.go b/social/social.go index 75b051731..d552ae593 100644 --- a/social/social.go +++ b/social/social.go @@ -267,10 +267,10 @@ func (c *Client) CheckGoogleToken(ctx context.Context, idToken string) (*GoogleP break } } + c.RUnlock() // All verification attempts failed. if token == nil { - c.RUnlock() return nil, errors.New("google id token invalid") } -- GitLab