Skip to content

Commit

Permalink
fix: a server can't retransmit with zero work counter
Browse files Browse the repository at this point in the history
  • Loading branch information
justRkive committed Dec 3, 2024
1 parent 7c1cfb1 commit b839b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/async_resolver/resolution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl Resolution {
let initial_server_index = self.state_block.get_current_server_index();
loop {
let server_entry = self.state_block.get_current_server_entry();
if !server_entry.get_info().is_active() {
if !server_entry.get_info().is_active() || server_entry.get_work_counter() == 0 {
self.state_block.increment_current_server_index();
if self.state_block.get_current_server_index() == initial_server_index {
break;
Expand Down

0 comments on commit b839b8b

Please sign in to comment.