diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-12-29 13:58:21 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-12-29 13:58:21 +0000 |
| commit | 992f82eb5a2e2512bb04b7a550bb8b9fc1eb7321 (patch) | |
| tree | 74d0a675e27fd78c95f0c64e47e08c2b73c1fadd /src/DefaultBtMessageDispatcher.cc | |
| parent | e874b84eddb92d74ad71a3771fda1c241b216484 (diff) | |
2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that BitTorrent download doesn't finish when
REJECT message is received before CHOKE message. The old
implementation doen't clear the use-bit of the piece when
recieved REJECT message.
* src/DefaultBtMessageDispatcher.cc
* test/DefaultBtMessageDispatcherTest.cc
Diffstat (limited to 'src/DefaultBtMessageDispatcher.cc')
| -rw-r--r-- | src/DefaultBtMessageDispatcher.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DefaultBtMessageDispatcher.cc b/src/DefaultBtMessageDispatcher.cc index 53eccae5..81fe64df 100644 --- a/src/DefaultBtMessageDispatcher.cc +++ b/src/DefaultBtMessageDispatcher.cc @@ -408,6 +408,7 @@ void DefaultBtMessageDispatcher::removeOutstandingRequest(const RequestSlot& slo std::deque<RequestSlot>::iterator i = std::lower_bound(requestSlots.begin(), requestSlots.end(), slot); if(i != requestSlots.end() && (*i) == slot) { + AbortOutstandingRequest(slot.getPiece(), cuid)(*i); requestSlots.erase(i); } } |
