Commit
f5938e8ff3cf5b6fadd6b440b3b10fc0e5a64733 started dropping all
messages before we become a monitor, but the last one was getting
through.
This drops also the last NameLost message, which indicatse the switch
from a regular peer to a monitor.
if (r < 0)
return log_error_errno(r, "Failed to read lost name: %m");
- if (!streq(name, unique_name))
- continue;
+ if (streq(name, unique_name))
+ is_monitor = true;
- is_monitor = true;
+ continue;
}
if (m) {