Skip to content

Commit

Permalink
fix state switches
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Feb 5, 2024
1 parent eae3301 commit e03a01f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ public override TransitionResult Transition(IEvent ev)
},
Events.LeftEvent e => HandleLeftEvent(e),
Events.LeftAllEvent e => new InactiveState(),
Events.HeartbeatSuccessEvent e => new CooldownState()
{
Input = this.Input,
},
Events.DisconnectEvent e => new StoppedState()
{
Input = this.Input,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public override TransitionResult Transition(IEvent ev)
},
Events.LeftEvent e => HandleLeftEvent(e),
Events.LeftAllEvent e => new InactiveState(),
Events.HeartbeatSuccessEvent e => new CooldownState()
{
Input = this.Input,
},
Events.HeartbeatFailureEvent e => HandleHeartbeatFailureEvent(e),
Events.DisconnectEvent e => new StoppedState()
{
Expand Down

0 comments on commit e03a01f

Please sign in to comment.