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
1 changed files with 1 additions and 10 deletions

View File

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