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))) {
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user