mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Revert Changes
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3962 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d9d996c587
commit
35c97a6f65
@ -385,8 +385,7 @@ void ftController::checkDownloadQueue()
|
||||
// - close it temporarily
|
||||
// - remove it from turtle handling
|
||||
// - move the ftFileControl to queued list
|
||||
// - set the queue priority to +1 in the queue, so they will be first resumed
|
||||
// after one of the lower priority downloads finished
|
||||
// - set the queue priority to 1+largest in the queue.
|
||||
// 1.2 - pop from the queue the 1st file to come (according to priority)
|
||||
// - enable turtle router handling for this hash
|
||||
// - reset counters
|
||||
@ -434,15 +433,7 @@ void ftController::checkDownloadQueue()
|
||||
#ifdef DEBUG_DWLQUEUE
|
||||
std::cerr << " - Inactive file " << it->second->mName << " at position " << it->second->mQueuePosition << " moved to end of the queue. mState=" << it->second->mState << ", time lapse=" << now - it->second->mCreator->lastRecvTimeStamp() << std::endl ;
|
||||
#endif
|
||||
|
||||
// notdefine: set the queue priority to +1 in the queue, so they will be first resumed
|
||||
// after one of the lower priority downloads finished
|
||||
// locked_bottomQueue(it->second->mQueuePosition) ;
|
||||
|
||||
if(it->second->mQueuePosition > 0)
|
||||
locked_swapQueue(it->second->mQueuePosition,it->second->mQueuePosition-1) ;
|
||||
break ;
|
||||
|
||||
locked_bottomQueue(it->second->mQueuePosition) ;
|
||||
#ifdef DEBUG_DWLQUEUE
|
||||
std::cerr << " new position: " << it->second->mQueuePosition << std::endl ;
|
||||
std::cerr << " new state: " << it->second->mState << std::endl ;
|
||||
|
Loading…
Reference in New Issue
Block a user