2005-12-21 jrandom

* Adjusted I2PSnark's usage of the streaming lib (tweaking it for BT's
      behavior)
    * Fixed the I2PSnark bug that would lose track of live peers
This commit is contained in:
jrandom
2005-12-21 12:04:54 +00:00
committed by zzz
parent 702e5a5eab
commit 98277d3b64
9 changed files with 101 additions and 49 deletions

View File

@@ -190,6 +190,11 @@ public class ThreadedHTMLRenderer extends HTMLRenderer {
String offset, String requestTags, String filteredAuthor, boolean authorOnly) throws IOException {
EntryContainer entry = archive.getEntry(post);
if (entry == null) return;
ThreadNode node = index.getNode(post);
if (node == null) {
_log.error("Post is not in the index: " + post.toString());
return;
}
_entry = entry;
_baseURI = baseURI;
@@ -236,8 +241,6 @@ public class ThreadedHTMLRenderer extends HTMLRenderer {
if ( (author == null) || (author.trim().length() <= 0) )
author = post.getKeyHash().toBase64().substring(0,6);
ThreadNode node = index.getNode(post);
out.write(author);
out.write("</a> @ ");
out.write(getEntryDate(post.getEntryId()));