use a mutex for download list access (should fix sorting)

This commit is contained in:
Christophe Dumez 2007-06-29 14:00:17 +00:00
parent dcc54a7f35
commit dfa9965ed3
3 changed files with 6 additions and 1 deletions

View file

@ -841,8 +841,8 @@ QStringList bittorrent::getUncheckedTorrentsList() const{
void bittorrent::setTorrentFinishedChecking(QString hash){
int index = torrentsUnchecked.indexOf(hash);
qDebug("torrent %s finished checking", (const char*)hash.toUtf8());
if(index != -1){
qDebug("torrent %s finished checking", (const char*)hash.toUtf8());
torrentsUnchecked.removeAt(index);
qDebug("Still %d unchecked torrents", torrentsUnchecked.size());
if(torrentsUnchecked.size() == 0){