Fix logic for waiting for project's remote id
This commit is contained in:
@@ -273,9 +273,11 @@ impl Project {
|
||||
}
|
||||
let mut watch = watch.unwrap();
|
||||
loop {
|
||||
if let Some(Some(id)) = watch.recv().await {
|
||||
let id = *watch.borrow();
|
||||
if let Some(id) = id {
|
||||
return id;
|
||||
}
|
||||
watch.recv().await;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user