Skip to content

Commit

Permalink
fix answer message counting
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal authored and FlorentinDUBOIS committed Jul 13, 2022
1 parent a673a3b commit 97e2fdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/src/command/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,8 @@ impl CommandServer {

tx.send(message).await.unwrap();

if nb > 1 {
self.in_flight.insert(message_id, (tx, nb - 1));
if nb > 0 {
self.in_flight.insert(message_id, (tx, nb));
}
}
}
Expand Down

0 comments on commit 97e2fdd

Please sign in to comment.