Skip to content

Commit

Permalink
fix relay_supervisor
Browse files Browse the repository at this point in the history
  • Loading branch information
“ramfox” committed Dec 2, 2024
1 parent ba44f53 commit 4bc2bfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iroh-relay/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ async fn relay_supervisor(
ret = tasks.join_next(), if tasks.len() > 0 => ret.expect("checked"),
ret = &mut quic_fut, if quic_enabled => ret.map(anyhow::Ok),
ret = &mut relay_fut, if relay_enabled => ret.map(anyhow::Ok),
else => Ok(Ok(())),
};
let ret = match res {
Ok(Ok(())) => {
Expand Down Expand Up @@ -792,7 +793,7 @@ mod tests {
.await
.expect("timeout, server not finished")
.expect("server task JoinError");
assert!(res.is_err());
assert!(res.is_ok());
}

#[tokio::test]
Expand Down

0 comments on commit 4bc2bfd

Please sign in to comment.