Fix missing mutex unlock

This commit is contained in:
Kailash Nadh 2018-10-31 18:46:20 +05:30
parent 39ba75b420
commit d62bb97ee1

View file

@ -304,6 +304,7 @@ func (m *Message) Render() error {
func (r *Runner) trackLink(url, campUUID, subUUID string) string {
r.linksMutex.RLock()
if uu, ok := r.links[url]; ok {
r.linksMutex.RUnlock()
return uu
}
r.linksMutex.RUnlock()