]> granicus.if.org Git - transmission/commitdiff
libT: undo r13901 regression to #4888 in the nightlies
authorJordan Lee <jordan@transmissionbt.com>
Sat, 13 Apr 2013 19:28:49 +0000 (19:28 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 13 Apr 2013 19:28:49 +0000 (19:28 +0000)
libtransmission/announcer.c

index af03c42b86e4ba6dd9da8d061a3165c292c8cc0a..07c7cd24e4d831e3cfd2d3d5b96d9e95e06138b2 100644 (file)
@@ -920,7 +920,7 @@ announce_request_new (const tr_announcer  * announcer,
     req->corrupt = tier->byteCounts[TR_ANN_CORRUPT];
     req->leftUntilComplete = tr_torrentHasMetadata (tor)
             ? tor->info.totalSize - tr_cpHaveTotal (&tor->completion)
-            : 0;
+            : ~ (uint64_t)0;
     req->event = event;
     req->numwant = event == TR_ANNOUNCE_EVENT_STOPPED ? 0 : NUMWANT;
     req->key = announcer->key;