mirror of https://github.com/aria2/aria2
2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added comment * src/RequestGroup.ccpull/1/head
parent
f3c79ebf05
commit
a60ba71f1e
|
@ -1,3 +1,8 @@
|
||||||
|
2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Added comment
|
||||||
|
* src/RequestGroup.cc
|
||||||
|
|
||||||
2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
In CookieStorage::load() and saveNsFormat(), handle exception
|
In CookieStorage::load() and saveNsFormat(), handle exception
|
||||||
|
|
|
@ -820,6 +820,12 @@ void RequestGroup::releaseRuntimeResource(DownloadEngine* e)
|
||||||
SharedHandle<BtRegistry> btRegistry = e->getBtRegistry();
|
SharedHandle<BtRegistry> btRegistry = e->getBtRegistry();
|
||||||
BtContextHandle btContextInReg =
|
BtContextHandle btContextInReg =
|
||||||
btRegistry->getBtContext(btContext->getInfoHashAsString());
|
btRegistry->getBtContext(btContext->getInfoHashAsString());
|
||||||
|
// Make sure that the registered BtContext's GID is equal to
|
||||||
|
// this->getGID(). Even if createInitialCommand() throws
|
||||||
|
// exception without registering this BtContext, after that, this
|
||||||
|
// method is called. In this case, just finding BtContext using
|
||||||
|
// infoHash may detect another download's BtContext and deleting
|
||||||
|
// it from BtRegistry causes Segmentation Fault.
|
||||||
if(!btContextInReg.isNull() &&
|
if(!btContextInReg.isNull() &&
|
||||||
btContextInReg->getOwnerRequestGroup()->getGID() ==
|
btContextInReg->getOwnerRequestGroup()->getGID() ==
|
||||||
btContext->getOwnerRequestGroup()->getGID()) {
|
btContext->getOwnerRequestGroup()->getGID()) {
|
||||||
|
|
Loading…
Reference in New Issue