if transitioning from a status different of Leaving OR there is no more live replication session (verbatim translation of the code). If the OR clause is executed, the original status is implicitly Leaving...