]> granicus.if.org Git - transmission/commit
(trunk libT) #3934 "manual reannounce doesn't work if the initial announce failed...
authorJordan Lee <jordan@transmissionbt.com>
Sat, 22 Jan 2011 19:56:01 +0000 (19:56 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 22 Jan 2011 19:56:01 +0000 (19:56 +0000)
commitf36fc1246c235bed769267c4a23b35cff2b84c81
tree893f1c5da3fc9804cec7c5a8ed87e0978075dcff
parent75ffe999d47d41b39b01ed2f091f414a9dd8bb4c
(trunk libT) #3934 "manual reannounce doesn't work if the initial announce failed" -- fixed.

Use tor->isRunning, rather than tier->isRunning, when testing to see if a torrent can manual announce or not.  tor->isRunning means we're inbetween the user pressing "start" and "stop." tier->isRunning means we're inbetween successful "started" and "stopped" announcements. (This is deliberately out-of-sync from tor->isRunning because it can take awhile to for tracker announces to finish.)

Under the old code (using tier->isRunning), it was impossible to manually reannounce unless there had been a successful event=started announce first. It was also possible to manually announce after the "stop" button had been pressed if the "event=stopped" announcement hadn't finished yet.
libtransmission/announcer.c