diff --git a/ChangeLog b/ChangeLog index 9dfffc97..630eab5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-31 Tatsuhiro Tsujikawa + + * 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 Reduced the usage of gettimeofday(). diff --git a/src/BtRequestMessage.cc b/src/BtRequestMessage.cc index 1c46a3a5..d554ad66 100644 --- a/src/BtRequestMessage.cc +++ b/src/BtRequestMessage.cc @@ -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); }