Skip to content

Commit fa2250a

Browse files
committed
resolverCallbackWrapper(): Catch exceptions
1 parent c08722c commit fa2250a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstore/filetransfer.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,12 @@ struct curlFileTransfer : public FileTransfer
395395
}
396396

397397
static int resolverCallbackWrapper(void *, void *, void * clientp) noexcept
398-
{
398+
try {
399399
// Create the `Activity` associated with this download.
400400
((TransferItem *) clientp)->act();
401401
return 0;
402+
} catch (...) {
403+
return 1;
402404
}
403405

404406
void unpause()

0 commit comments

Comments
 (0)