mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
(trunk libT) #4530 "lastAnnounceResult is not properly set" -- fixed.
This commit is contained in:
parent
bc4e3f137c
commit
c9421c4041
1 changed files with 5 additions and 4 deletions
|
@ -1112,6 +1112,11 @@ on_announce_done( const tr_announce_response * response,
|
||||||
dbgmsg( tier, "tracker gave \"%s\"", str );
|
dbgmsg( tier, "tracker gave \"%s\"", str );
|
||||||
publishWarning( tier, str );
|
publishWarning( tier, str );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tr_strlcpy( tier->lastAnnounceStr, _( "Success" ),
|
||||||
|
sizeof( tier->lastAnnounceStr ) );
|
||||||
|
}
|
||||||
|
|
||||||
if(( i = response->min_interval ))
|
if(( i = response->min_interval ))
|
||||||
tier->announceMinIntervalSec = i;
|
tier->announceMinIntervalSec = i;
|
||||||
|
@ -1127,10 +1132,6 @@ on_announce_done( const tr_announce_response * response,
|
||||||
publishPeersPex( tier, response->seeders, response->leechers,
|
publishPeersPex( tier, response->seeders, response->leechers,
|
||||||
response->pex6, response->pex6_count );
|
response->pex6, response->pex6_count );
|
||||||
|
|
||||||
if( !*tier->lastAnnounceStr )
|
|
||||||
tr_strlcpy( tier->lastAnnounceStr, _( "Success" ),
|
|
||||||
sizeof( tier->lastAnnounceStr ) );
|
|
||||||
|
|
||||||
tier->isRunning = data->isRunningOnSuccess;
|
tier->isRunning = data->isRunningOnSuccess;
|
||||||
|
|
||||||
/* if the tracker included scrape fields in its announce response,
|
/* if the tracker included scrape fields in its announce response,
|
||||||
|
|
Loading…
Reference in a new issue