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:
parent
9c68f24cfc
commit
00cf036d58
@ -79,7 +79,7 @@ Client::ClientCallback(AvahiClient *c, AvahiClientState state) noexcept
|
|||||||
|
|
||||||
case AVAHI_CLIENT_S_COLLISION:
|
case AVAHI_CLIENT_S_COLLISION:
|
||||||
case AVAHI_CLIENT_S_REGISTERING:
|
case AVAHI_CLIENT_S_REGISTERING:
|
||||||
assert(!connected);
|
connected = false;
|
||||||
|
|
||||||
for (auto *l : listeners)
|
for (auto *l : listeners)
|
||||||
l->OnAvahiChanged();
|
l->OnAvahiChanged();
|
||||||
|
Loading…
Reference in New Issue
Block a user