Ejemplo n.º 1
0
BOOL CDownloadTransferBT::SubtractRequested(Fragments::List& ppFragments) const
{
	ASSUME_LOCK( Transfers.m_pSection );

	if ( m_oRequested.empty() || m_bChoked ) 
		return FALSE;

	ppFragments.erase( m_oRequested.begin(), m_oRequested.end() );
	return TRUE;
}
BOOL CDownloadTransferED2K::SubtractRequested(Fragments::List& ppFragments)
{
	if ( m_nState != dtsDownloading ) return FALSE;
	ppFragments.erase( m_oRequested.begin(), m_oRequested.end() );
	return TRUE;
}