]> granicus.if.org Git - transmission/commit
(trunk libT) simplify the code in peer-mgr.c's rechokeDownloads().
authorJordan Lee <jordan@transmissionbt.com>
Fri, 29 Apr 2011 23:25:12 +0000 (23:25 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Fri, 29 Apr 2011 23:25:12 +0000 (23:25 +0000)
commit841bfffff8e70a0b20724f1c05d2265326f513f0
tree35ce810e2752000ac60a3ce461cae0d9b7278d82
parent92ad42e10c9cfa74f653ffb5f0b64bb75ec0dd78
(trunk libT) simplify the code in peer-mgr.c's rechokeDownloads().

The new code has fewer calls to malloc/free and, more importantly, has less copy-and-pasted code to handle the different rechoke states.
libtransmission/peer-mgr.c