mirror of https://github.com/aria2/aria2
Fix possible cause of crash after metadata download
parent
3af50e5140
commit
8cdcb71308
|
@ -155,6 +155,7 @@ bool UDPAnnRequest::success() const
|
||||||
void UDPAnnRequest::stop(DownloadEngine* e)
|
void UDPAnnRequest::stop(DownloadEngine* e)
|
||||||
{
|
{
|
||||||
if (req_) {
|
if (req_) {
|
||||||
|
req_->user_data = nullptr;
|
||||||
req_.reset();
|
req_.reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,7 +151,6 @@ int UDPTrackerClient::receiveReply(std::shared_ptr<UDPTrackerRequest>& recvReq,
|
||||||
logInvalidTransaction(remoteAddr, remotePort, action, transactionId);
|
logInvalidTransaction(remoteAddr, remotePort, action, transactionId);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
req->state = UDPT_STA_COMPLETE;
|
|
||||||
|
|
||||||
auto connectionId = bittorrent::getLLIntParam(data, 8);
|
auto connectionId = bittorrent::getLLIntParam(data, 8);
|
||||||
A2_LOG_INFO(
|
A2_LOG_INFO(
|
||||||
|
|
Loading…
Reference in New Issue