forked from I2P_Developers/i2p.i2p
cleanups after review, ticket 390
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user