moquette-io / moquette

Java MQTT lightweight broker
http://moquette-io.github.io/moquette/
Apache License 2.0
2.27k stars 814 forks source link

Avoid attempt at purge of already purged session #726

Closed hylkevds closed 1 year ago

hylkevds commented 1 year ago

The purge method can be called from both the disconnect message handler and from the connectionLost handler. If the disconnect happened normally then the connectionLost handler doesn't need to purge any more. Thus there is no need to throw an Exception.

andsel commented 1 year ago

Hi @hylkevds I think this is a duplicated of #735, sorry

andsel commented 1 year ago

Do you think we can close it?

hylkevds commented 1 year ago

Yeah, looks like #735 fixes the problem too. :+1: