mirror of https://github.com/aria2/aria2
2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed segmentation fault bug when exiting if dht is disabled. * src/RequestGroup.ccpull/1/head
parent
bc1f1bdf35
commit
bfcc300670
|
@ -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>
|
2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Fixed typo in log message and define the message in message.h
|
Fixed typo in log message and define the message in message.h
|
||||||
|
|
|
@ -609,7 +609,9 @@ void RequestGroup::releaseRuntimeResource()
|
||||||
btContextInReg->getOwnerRequestGroup()->getGID() ==
|
btContextInReg->getOwnerRequestGroup()->getGID() ==
|
||||||
btContext->getOwnerRequestGroup()->getGID()) {
|
btContext->getOwnerRequestGroup()->getGID()) {
|
||||||
BtRegistry::unregister(btContext->getInfoHashAsString());
|
BtRegistry::unregister(btContext->getInfoHashAsString());
|
||||||
DHTRegistry::_peerAnnounceStorage->removePeerAnnounce(btContext);
|
if(!DHTRegistry::_peerAnnounceStorage.isNull()) {
|
||||||
|
DHTRegistry::_peerAnnounceStorage->removePeerAnnounce(btContext);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // ENABLE_BITTORRENT
|
#endif // ENABLE_BITTORRENT
|
||||||
|
|
Loading…
Reference in New Issue