lib/upnp/Discovery: remove unreachable exception handler

This commit is contained in:
Max Kellermann 2024-01-04 18:04:36 +01:00
parent 08e0eb79f5
commit 468eceabff

View File

@ -233,16 +233,7 @@ UPnPDeviceDirectory::OnAlive(const UpnpDiscovery *disco) noexcept
isCDService(UpnpDiscovery_get_ServiceType_cstr(disco))) { isCDService(UpnpDiscovery_get_ServiceType_cstr(disco))) {
try { try {
auto *downloader = new Downloader(*this, *disco); auto *downloader = new Downloader(*this, *disco);
try {
downloader->Start(); downloader->Start();
} catch (...) {
BlockingCall(GetEventLoop(), [downloader](){
downloader->Destroy();
});
throw;
}
} catch (...) { } catch (...) {
LogError(std::current_exception()); LogError(std::current_exception());
return UPNP_E_SUCCESS; return UPNP_E_SUCCESS;