Skip to content

Commit

Permalink
fix: correct is_launched for Party if status is None (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaMasych authored Oct 17, 2024
1 parent a364193 commit 4adb7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/party.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl<V: Value, VS: ValueSelector<V>> Party<V, VS> {
/// # Returns
/// - `true` if the ballot is currently active; `false` otherwise.
pub fn is_launched(&self) -> bool {
!self.is_stopped()
!(self.is_stopped() || self.status == PartyStatus::None)
}

/// Checks if the ballot process has been stopped.
Expand Down

0 comments on commit 4adb7dd

Please sign in to comment.