mirror of
https://github.com/transmission/transmission
synced 2025-03-06 19:48:15 +00:00
make sure to use the speed limit of 0 when moving the torrent data file
This commit is contained in:
parent
913a83ed27
commit
8705d4326f
1 changed files with 4 additions and 1 deletions
|
@ -282,9 +282,12 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
|||
&& (canMove = [self alertForMoveFolderAvailable]))
|
||||
{
|
||||
//pause without actually stopping
|
||||
tr_setDownloadLimit(fHandle, 0);
|
||||
tr_setUseCustomUpload(fHandle, 1);
|
||||
tr_setUploadLimit(fHandle, 0);
|
||||
|
||||
tr_setUseCustomDownload(fHandle, 1);
|
||||
tr_setDownloadLimit(fHandle, 0);
|
||||
|
||||
if ([[NSFileManager defaultManager] movePath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]
|
||||
toPath: [fDownloadFolder stringByAppendingPathComponent: [self name]] handler: nil])
|
||||
[self updateDownloadFolder];
|
||||
|
|
Loading…
Add table
Reference in a new issue