forked from I2P_Developers/i2p.i2p
Router: Fix logic error in check for local destinations
This commit is contained in:
@ -63,9 +63,9 @@ public class ClientMessagePool {
|
||||
*
|
||||
*/
|
||||
public void add(ClientMessage msg, boolean isDefinitelyRemote) {
|
||||
if ( !isDefinitelyRemote ||
|
||||
(_context.clientManager().isLocal(msg.getDestination())) ||
|
||||
(_context.clientManager().isLocal(msg.getDestinationHash())) ) {
|
||||
if (!isDefinitelyRemote &&
|
||||
(_context.clientManager().isLocal(msg.getDestination()) ||
|
||||
_context.clientManager().isLocal(msg.getDestinationHash()))) {
|
||||
if (_log.shouldLog(Log.DEBUG))
|
||||
_log.debug("Adding message for local delivery");
|
||||
_context.clientManager().messageReceived(msg);
|
||||
|
Reference in New Issue
Block a user