lib/avahi/Publisher: add missing defer_register_services.Cancel() calls
This commit is contained in:
parent
461da92064
commit
8d02986b0e
|
@ -95,6 +95,7 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* And recreate the services */
|
/* And recreate the services */
|
||||||
|
defer_register_services.Cancel();
|
||||||
should_reset_group = false;
|
should_reset_group = false;
|
||||||
RegisterServices(*g);
|
RegisterServices(*g);
|
||||||
break;
|
break;
|
||||||
|
@ -107,6 +108,7 @@ try {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
defer_register_services.Cancel();
|
||||||
error_handler.OnAvahiError(std::current_exception());
|
error_handler.OnAvahiError(std::current_exception());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -239,6 +241,7 @@ Publisher::OnAvahiDisconnect() noexcept
|
||||||
{
|
{
|
||||||
group.reset();
|
group.reset();
|
||||||
should_reset_group = false;
|
should_reset_group = false;
|
||||||
|
defer_register_services.Cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -246,6 +249,7 @@ Publisher::OnAvahiChanged() noexcept
|
||||||
{
|
{
|
||||||
group.reset();
|
group.reset();
|
||||||
should_reset_group = false;
|
should_reset_group = false;
|
||||||
|
defer_register_services.Cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Avahi
|
} // namespace Avahi
|
||||||
|
|
Loading…
Reference in New Issue