resolverCallbackWrapper(): Catch exceptions

This commit is contained in:
Eelco Dolstra
2026-01-14 19:40:53 +01:00
parent ee64ffcd75
commit 77fa94d8d4

View File

@@ -419,10 +419,12 @@ struct curlFileTransfer : public FileTransfer
}
static int resolverCallbackWrapper(void *, void *, void * clientp) noexcept
{
try {
// Create the `Activity` associated with this download.
((TransferItem *) clientp)->act();
return 0;
} catch (...) {
return 1;
}
void unpause()