1
0
Fork 0
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:
Jordan Lee 2011-10-09 00:21:36 +00:00
parent bc4e3f137c
commit c9421c4041

View file

@ -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,