Skip to content

Commit

Permalink
Fix hangs when a STT service runs out of file descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 committed Dec 1, 2023
1 parent 52c478e commit 46ce53c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripty_stt/src/load_balancer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ impl LoadBalancedStream {
)));
}

Stream::new(language, verbose, self.peer_address).await
let res = Stream::new(language, verbose, self.peer_address).await;
self.is_in_error.store(res.is_err(), Ordering::Relaxed);
res
}

pub async fn new(peer_address: SocketAddr) -> io::Result<Self> {
Expand Down

0 comments on commit 46ce53c

Please sign in to comment.