fix(service): Hang on close of stdin
This commit is contained in:
parent
77503b1545
commit
10d35d9379
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ impl<O: futures::Sink<Response> + Unpin> Service<O> {
|
|||
let f1 = request_handler(input, service_tx);
|
||||
let f2 = self.response_handler(service_rx);
|
||||
|
||||
future::zip(f1, f2).await;
|
||||
future::or(f1, f2).await;
|
||||
}
|
||||
|
||||
async fn response_handler(&mut self, mut service_rx: mpsc::Receiver<Event>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue