Skip to content

Conversation

@cppcoffee
Copy link
Contributor

This commit wraps the closed boolean field in the STUN Agent with a Mutex to ensure thread-safety when the Agent is accessed from multiple threads concurrently.

This commit wraps the `closed` boolean field in the STUN Agent with a Mutex
to ensure thread-safety when the Agent is accessed from multiple threads
concurrently.

Signed-off-by: Xiaobo Liu <[email protected]>
Copy link
Member

@rainliu rainliu left a comment

Choose a reason for hiding this comment

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

I don’t see the reason why need mutex for this? Any example or test shows such concerns?

@cppcoffee cppcoffee closed this Sep 4, 2025
@cppcoffee cppcoffee deleted the server branch September 5, 2025 03:06
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.

2 participants