-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential deadlock in TestMdns (#6721)
* Fix locking scope for MDNS test. std::condition_variable is supposed to be able to hold the lock mutex when exiting after wait_for. If the lock on the mutex is held throughout the 'RunMainLoop', the condition variable can never exit. Updated the scope of the locks. * Update the locking logic to make the test not racy at startup * Fix unterminated comment
- Loading branch information
Showing
1 changed file
with
43 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters