Skip to content

Commit a13501a

Browse files
committed
typo, and also make sure the joinset is not empty
1 parent 9c1de21 commit a13501a

File tree

1 file changed

+1
-1
lines changed
  • crates/corro-agent/src/broadcast

1 file changed

+1
-1
lines changed

crates/corro-agent/src/broadcast/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ async fn handle_broadcasts(
455455
break;
456456
}
457457
},
458-
_ = join_set.next() => {
458+
_ = join_set.join_next(), if !join_set.is_empty() => {
459459
// drains the joinset
460460
continue;
461461
},

0 commit comments

Comments
 (0)