Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defer unlocks in rtrmon as well #52

Merged
merged 2 commits into from
Oct 31, 2021
Merged

Conversation

ties
Copy link
Collaborator

@ties ties commented Oct 30, 2021

def unlock if unlock happens before return.

@mellowdrifter could you give this a look with a second pair of eyes?

@@ -358,9 +358,9 @@ func (c *Client) Start(id int, ch chan int) {
tmpVrpMap[key] = &vrpSimple
}
c.compLock.Lock()
defer c.compLock.Unlock()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will remove this one because it will still hold the lock while communicating over the channel..

@ties ties merged commit f0b8640 into bgp:master Oct 31, 2021
@ties ties deleted the fix/change-defers-in-rtrmon branch October 31, 2021 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants