lib/upnp/Discovery: remove unreachable exception handler
This commit is contained in:
parent
08e0eb79f5
commit
468eceabff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue