Changeset 2155

Show
Ignore:
Timestamp:
10/31/05 05:44:09 (3 years ago)
Author:
madcat
Message:

Only drop clients from queue if they arent sources for us.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hydranode/hncore/ed2k/clientlist.cpp

    r2074 r2155  
    312312                                        c->sendQR(); 
    313313                                } 
    314                         } else
     314                        } else if (c->isConnected())
    315315                                // was found in queue - just send current rank 
    316316                                c->sendQR(); 
     
    460460                if (q && q->getLastQueueReask() + QUEUE_DROPTIME > curTick) { 
    461461                        m_queue.push_back(*i); 
    462                 } else if (q) { 
     462                } else if (q && !(*i)->m_sourceInfo) { 
     463                        // only drop clients here when they aren't sources 
    463464                        (*i)->removeFromQueue(); 
    464465                        ++dropped;