diff -r -u aMule-2.0.3/src/SharedFileList.cpp aMule-2.0.3-bastard/src/SharedFileList.cpp --- aMule-2.0.3/src/SharedFileList.cpp 2005-06-05 07:17:11.000000000 +0200 +++ aMule-2.0.3-bastard/src/SharedFileList.cpp 2006-02-14 14:34:19.000000000 +0100 @@ -256,34 +256,34 @@ } void CSharedFileList::SafeAddKFile(CKnownFile* toadd, bool bOnlyAdd){ - // TODO: Check if the file is already known - only with another date - - //CSingleLock sLock(&list_mut,true); - list_mut.Lock(); - if ( m_Files_map.find(toadd->GetFileHash()) != m_Files_map.end() ) - { - list_mut.Unlock(); - return; - } - m_Files_map[toadd->GetFileHash()] = toadd; - //sLock.Unlock(); - list_mut.Unlock(); - - Notify_SharedFilesShowFile(toadd); - - if (!bOnlyAdd) { - - // offer new file to server - if (!theApp.serverconnect->IsConnected()) { - return; - } - - m_lastPublishED2KFlag = true; - - // Publishing of files is not anymore handled here. Instead, the timer does it by itself. - - } - +// // TODO: Check if the file is already known - only with another date +// +// //CSingleLock sLock(&list_mut,true); +// list_mut.Lock(); +// if ( m_Files_map.find(toadd->GetFileHash()) != m_Files_map.end() ) +// { +// list_mut.Unlock(); +// return; +// } +// m_Files_map[toadd->GetFileHash()] = toadd; +// //sLock.Unlock(); +// list_mut.Unlock(); +// +// Notify_SharedFilesShowFile(toadd); +// +// if (!bOnlyAdd) { +// +// // offer new file to server +// if (!theApp.serverconnect->IsConnected()) { +// return; +// } +// +// m_lastPublishED2KFlag = true; +// +// // Publishing of files is not anymore handled here. Instead, the timer does it by itself. +// +// } +// } // removes first occurrence of 'toremove' in 'list'