Fix logic for waiting for project's remote id
This commit is contained in:
parent
5d8d7de68d
commit
a138955943
1 changed files with 3 additions and 1 deletions
|
@ -273,9 +273,11 @@ impl Project {
|
||||||
}
|
}
|
||||||
let mut watch = watch.unwrap();
|
let mut watch = watch.unwrap();
|
||||||
loop {
|
loop {
|
||||||
if let Some(Some(id)) = watch.recv().await {
|
let id = *watch.borrow();
|
||||||
|
if let Some(id) = id {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
watch.recv().await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue