2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Fixed segmentation fault bug when exiting if dht is disabled.
	* src/RequestGroup.cc
pull/1/head
Tatsuhiro Tsujikawa 2008-02-12 13:49:39 +00:00
parent bc1f1bdf35
commit bfcc300670
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed segmentation fault bug when exiting if dht is disabled.
* src/RequestGroup.cc
2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed typo in log message and define the message in message.h

View File

@ -609,7 +609,9 @@ void RequestGroup::releaseRuntimeResource()
btContextInReg->getOwnerRequestGroup()->getGID() ==
btContext->getOwnerRequestGroup()->getGID()) {
BtRegistry::unregister(btContext->getInfoHashAsString());
DHTRegistry::_peerAnnounceStorage->removePeerAnnounce(btContext);
if(!DHTRegistry::_peerAnnounceStorage.isNull()) {
DHTRegistry::_peerAnnounceStorage->removePeerAnnounce(btContext);
}
}
}
#endif // ENABLE_BITTORRENT