Skip to content
Snippets Groups Projects
Unverified Commit 63b882b8 authored by Daniel Czerwonk's avatar Daniel Czerwonk Committed by GitHub
Browse files

Merge pull request #32 from hikhvar/fix/fix-deadlock-in-locrib

Fix: Deadlock in locRIB
parents 1337ccc9 281808b9
No related branches found
No related tags found
No related merge requests found
......@@ -55,9 +55,8 @@ func (c *ClientManager) Register(client RouteTableClient) {
// RegisterWithOptions registers a client with options for updates
func (c *ClientManager) RegisterWithOptions(client RouteTableClient, opt ClientOptions) {
c.mu.Lock()
defer c.mu.Unlock()
c.clients[client] = opt
c.mu.Unlock()
c.master.UpdateNewClient(client)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment