Skip to content

Commit

Permalink
lib/upnp/Discovery: remove unreachable exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Jan 4, 2024
1 parent 08e0eb7 commit 468ecea
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/lib/upnp/Discovery.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
downloader->Start();
} catch (...) {
LogError(std::current_exception());
return UPNP_E_SUCCESS;
Expand Down

0 comments on commit 468ecea

Please sign in to comment.