1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-31 03:12:44 +00:00

macOS fix a potential hang when updating the blocklist (#4010)

fixes potential hang when unzipping a new blocklist on macOS (#3969)
This commit is contained in:
SweetPPro 2022-10-25 02:12:33 +11:00 committed by GitHub
parent 70f623f32b
commit a8267395b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -284,7 +284,7 @@ BlocklistDownloader* fBLDownloader = nil;
NSTask* gunzip = [[NSTask alloc] init]; NSTask* gunzip = [[NSTask alloc] init];
gunzip.launchPath = @"/usr/bin/gunzip"; gunzip.launchPath = @"/usr/bin/gunzip";
gunzip.currentDirectoryPath = destinationDir.path; gunzip.currentDirectoryPath = destinationDir.path;
gunzip.arguments = @[ @"--keep", file.path ]; gunzip.arguments = @[ @"--keep", @"--force", file.path ];
@try @try
{ {