lib/avahi/Client: add assert()

This commit is contained in:
Max Kellermann 2024-01-17 18:38:34 +01:00 committed by Max Kellermann
parent 9a7a49350c
commit 6b43338e06
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ Client::ClientCallback(AvahiClient *c, AvahiClientState state,
void
Client::OnReconnectTimer() noexcept
{
assert(client == nullptr);
int error;
client = avahi_client_new(&poll, AVAHI_CLIENT_NO_FAIL,
ClientCallback, this,