As the new client has connected using the same ClientID, this is treated as a continuation of the previous session (if a persistent session was used), or a new session with the same ClientID (if the previous session was not persistent). As the broker perceives the client as being continuously connected (the old session continuing or a new session starting immediately), it will not publish the LWT message.