~ubuntu-branches/ubuntu/lucid/ktorrent/lucid

« back to all changes in this revision

Viewing changes to libbtcore/dht/task.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-12-08 19:17:41 UTC
  • mfrom: (1.2.1 upstream) (0.7.12 sid)
  • Revision ID: james.westby@ubuntu.com-20091208191741-lqlq0xvnlv8ki19u
Tags: 3.3.1+dfsg.1-1ubuntu1
* Merge with Debian Testing remaining changes:
  - Build-depend directly on libboost-serialization1.40-dev since
    libboost-serialization-dev from boost-defaults is not in Main
  - Add in rules: include /usr/lib/kubuntu-desktop-i18n/debhelper/kubuntu.mk
  - Don't use dpkg-source 3.0 format
  - Add quilt to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <k3resolver.h>
22
22
#include "kclosestnodessearch.h"
23
23
#include "rpcserver.h"
24
 
#include "kbucket.h"
25
24
 
26
25
using namespace KNetwork;
27
26
 
43
42
        {
44
43
                // fill the todo list
45
44
                for (KClosestNodesSearch::CItr i = kns.begin(); i != kns.end();i++)
46
 
                        todo.append(i->second);
 
45
                        todo.insert(i->second);
47
46
                this->queued = queued;
48
47
                if (!queued)
49
48
                        update();
126
125
                if (res.count() == 0)
127
126
                        return;
128
127
                
129
 
                todo.append(KBucketEntry(res.front().address(),dht::Key()));
 
128
                todo.insert(KBucketEntry(res.front().address(),dht::Key()));
130
129
        }
131
130
 
132
131
}