lib/avahi/Client: relax assertion after COLLISION/REGISTERING

Turns out that `AVAHI_CLIENT_S_COLLISION` can occur after
`AVAHI_CLIENT_S_RUNNING`, and `connected==true`.  Relaxing this fixes
a bogus assertion failure.
This commit is contained in:
Max Kellermann 2024-02-01 17:01:31 +01:00 committed by Max Kellermann
parent 9c68f24cfc
commit 00cf036d58

View File

@ -79,7 +79,7 @@ Client::ClientCallback(AvahiClient *c, AvahiClientState state) noexcept
case AVAHI_CLIENT_S_COLLISION:
case AVAHI_CLIENT_S_REGISTERING:
assert(!connected);
connected = false;
for (auto *l : listeners)
l->OnAvahiChanged();