cleanups after review, ticket 390

This commit is contained in:
zzz
2011-01-24 13:20:06 +00:00
parent 4191eb98b0
commit bf99b04e0a
7 changed files with 1583 additions and 1590 deletions

View File

@@ -26,11 +26,13 @@ class DestReplyMessageHandler extends HandlerImpl {
_log.debug("Handle message " + message);
DestReplyMessage msg = (DestReplyMessage) message;
Destination d = msg.getDestination();
if (d != null)
if (d != null) {
session.destReceived(d);
Hash h = msg.getHash();
if (h != null)
session.destLookupFailed(h);
} else {
Hash h = msg.getHash();
if (h != null)
session.destLookupFailed(h);
}
// else let it time out
}
}

View File

@@ -75,7 +75,7 @@ public abstract class SimpleDataStructure extends DataStructureImpl {
/**
* Sets the data.
* @param data of correct length, or null
* @param in the stream to read
* @throws RuntimeException if data already set.
*/
public void readBytes(InputStream in) throws DataFormatException, IOException {