~ubuntu-branches/ubuntu/oneiric/libktorrent/oneiric

« back to all changes in this revision

Viewing changes to src/peer/peeruploader.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2011-05-26 00:33:38 UTC
  • mfrom: (5.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110526003338-2r4zwyzn8bovsxay
Tags: 1.1.1-2
Release to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
                peer->getPacketWriter().doNotSendPiece(r,peer->getStats().fast_extensions);
58
58
        }
59
59
        
60
 
        Uint32 PeerUploader::update(ChunkManager & cman,Uint32 opt_unchoked)
 
60
        Uint32 PeerUploader::update(ChunkManager & cman)
61
61
        {
62
62
                Uint32 ret = uploaded;
63
63
                uploaded = 0;
67
67
                // if we have choked the peer do not upload
68
68
                if (peer->areWeChoked())
69
69
                        return ret;
70
 
                                
71
 
                if (peer->isSnubbed() && !peer->areWeChoked() &&
72
 
                        !cman.completed() && peer->getID() != opt_unchoked)
73
 
                        return ret;
74
 
                
75
70
                
76
71
                while (requests.count() > 0)
77
72
                {