Skip to content

Commit

Permalink
fix: πŸ› Heartbeat scheduled task repeats during reconnection (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
x1a2h1 authored Sep 4, 2024
1 parent 924b4f7 commit 840398c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/core/session/session_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func (s *State) wsConnectSuccess() {

func (s *State) wsConnectFail() error {
log.Errorf("ws connect fail")
s.HeartBeatCron.Clear()
s.FSM.Event(context.Background(), EventWsConnectFail)
return nil
}

0 comments on commit 840398c

Please sign in to comment.