This commit is contained in:
parent
311755c812
commit
baa6c1568e
30 changed files with 181 additions and 108 deletions
|
|
@ -57,9 +57,8 @@ impl YellowstoneServerContext {
|
|||
|
||||
pub fn wait(&self, service: &str) -> Result<(), ZError> {
|
||||
loop {
|
||||
match self.service_map.lock().get(service) {
|
||||
Some(_) => return Ok(()),
|
||||
None => {}
|
||||
if self.service_map.lock().get(service).is_some() {
|
||||
return Ok(());
|
||||
}
|
||||
self.registration_semaphore.wait().unwrap();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue