Mutex Unlock when we fail to store route in cache.
This commit is contained in:
		| @@ -166,6 +166,7 @@ func (p *Proxy) watchRoutes() { | |||||||
| 		p.Lock() | 		p.Lock() | ||||||
| 		if err := p.manageRouteCache(event.Route, fmt.Sprintf("%s", event.Type)); err != nil { | 		if err := p.manageRouteCache(event.Route, fmt.Sprintf("%s", event.Type)); err != nil { | ||||||
| 			// TODO: should we bail here? | 			// TODO: should we bail here? | ||||||
|  | 			p.Unlock() | ||||||
| 			continue | 			continue | ||||||
| 		} | 		} | ||||||
| 		p.Unlock() | 		p.Unlock() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user