Skip to content

Commit

Permalink
Update src/lavinmq/mqtt/broker.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Carl Hörberg <[email protected]>
  • Loading branch information
kickster97 and carlhoerberg authored Jan 24, 2025
1 parent 76a0edd commit 5065bad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lavinmq/mqtt/broker.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ module LavinMQ

def session_present?(client_id : String, clean_session) : Bool
return false if clean_session
session = sessions[client_id]?
return false if session.nil? || session.clean_session?
session = sessions[client_id]? || return false
return false if session.clean_session?
true
end

Expand Down

0 comments on commit 5065bad

Please sign in to comment.