lib/{curl,upnp}: add more exception handlers

Bugs found by Coverity.
This commit is contained in:
Max Kellermann
2017-11-14 20:05:44 +01:00
parent e2c81aa9ea
commit 1040b85785
5 changed files with 25 additions and 13 deletions

View File

@@ -140,7 +140,11 @@ private:
void OnDeferredStart() noexcept {
assert(!done);
request.Start();
try {
request.Start();
} catch (...) {
OnError(std::current_exception());
}
}
/* virtual methods from CurlResponseHandler */