make sure to use the speed limit of 0 when moving the torrent data file

This commit is contained in:
Mitchell Livingston 2007-05-16 03:44:08 +00:00
parent 913a83ed27
commit 8705d4326f
1 changed files with 4 additions and 1 deletions

View File

@ -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];