Skip to content

Commit

Permalink
Move runner.End to end of SessionExpired
Browse files Browse the repository at this point in the history
  • Loading branch information
QuangTung97 committed Apr 5, 2024
1 parent a760efe commit 7a1ff0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions curator/fake_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ func (s *FakeZookeeper) SessionExpired(clientID FakeClientID) {
state.SessionID = 0
state.ConnErr = true

runner := s.Sessions[clientID]
runner.End()

s.runAllCallbacksWithConnectionError(clientID, false)

s.Zxid++
s.deleteNodesRecursiveForSessionID(s.Root, "", sessionID)

runner := s.Sessions[clientID]
runner.End()
}

func (s *FakeZookeeper) deleteNodesRecursiveForSessionID(parent *ZNode, path string, sessionID int64) {
Expand Down

0 comments on commit 7a1ff0e

Please sign in to comment.