Skip to content

Commit

Permalink
Check against the correct clean session var for abandoning old inflights
Browse files Browse the repository at this point in the history
  • Loading branch information
mochi-co committed Aug 17, 2022
1 parent ad8bf2a commit ecbd07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func (s *Server) EstablishConnection(lid string, c net.Conn, ac auth.Controller)

err = cl.StopCause() // Determine true cause of stop.

if !sessionPresent {
if cl.CleanSession {
s.clearAbandonedInflights(cl)
}

Expand Down

0 comments on commit ecbd07f

Please sign in to comment.