Main, ...: catch any exception, not just std::runtime_error
This commit is contained in:
@@ -104,8 +104,8 @@ UpnpNeighborExplorer::GetList() const noexcept
|
||||
|
||||
try {
|
||||
tmp = discovery->GetDirectories();
|
||||
} catch (const std::runtime_error &e) {
|
||||
LogError(e);
|
||||
} catch (...) {
|
||||
LogError(std::current_exception());
|
||||
}
|
||||
|
||||
List result;
|
||||
|
Reference in New Issue
Block a user