Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mcroomp committed Apr 10, 2024
1 parent 523637a commit 888062c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/structs/multiplexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,14 @@ where
writer.write_all(&b[..]).context(here!())?;
}
Err(_) => {
// if we get a receiving error here, this means that one of the threads broke
// with an error, and this error will be collected when we join the threads
break;
}
}
}

// in place scope will join all the threads before it exits
return Ok(());
})
.context(here!())?;
Expand Down

0 comments on commit 888062c

Please sign in to comment.