2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

* src/BtRequestMessage.cc
	(BtRequestMessage::onQueue): Given piece to RequestSlot. This is 
a fix
	for segmentation fault caused by previous commit.
pull/1/head
Tatsuhiro Tsujikawa 2008-05-31 05:49:28 +00:00
parent 1d7b5e6f4a
commit 405c46277f
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* src/BtRequestMessage.cc
(BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
for segmentation fault caused by previous commit.
2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Reduced the usage of gettimeofday().

View File

@ -114,7 +114,7 @@ std::string BtRequestMessage::toString() const {
}
void BtRequestMessage::onQueued() {
RequestSlot requestSlot(index, begin, length, blockIndex);
RequestSlot requestSlot(index, begin, length, blockIndex, pieceStorage->getPiece(index));
dispatcher->addOutstandingRequest(requestSlot);
}