mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +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 );
|
||||
publishWarning( tier, str );
|
||||
}
|
||||
else
|
||||
{
|
||||
tr_strlcpy( tier->lastAnnounceStr, _( "Success" ),
|
||||
sizeof( tier->lastAnnounceStr ) );
|
||||
}
|
||||
|
||||
if(( i = response->min_interval ))
|
||||
tier->announceMinIntervalSec = i;
|
||||
|
@ -1127,10 +1132,6 @@ on_announce_done( const tr_announce_response * response,
|
|||
publishPeersPex( tier, response->seeders, response->leechers,
|
||||
response->pex6, response->pex6_count );
|
||||
|
||||
if( !*tier->lastAnnounceStr )
|
||||
tr_strlcpy( tier->lastAnnounceStr, _( "Success" ),
|
||||
sizeof( tier->lastAnnounceStr ) );
|
||||
|
||||
tier->isRunning = data->isRunningOnSuccess;
|
||||
|
||||
/* if the tracker included scrape fields in its announce response,
|
||||
|
|
Loading…
Reference in a new issue