snark build fix sorry

This commit is contained in:
zzz
2012-08-11 13:51:52 +00:00
parent 14587ebb59
commit 50d5692884
2 changed files with 3 additions and 3 deletions

View File

@ -518,8 +518,8 @@ public class KRPC implements I2PSessionMuxedListener, DHT {
public synchronized void start() {
if (_isRunning)
return;
session.addMuxedSessionListener(this, I2PSession.PROTO_DATAGRAM_RAW, _rPort);
session.addMuxedSessionListener(this, I2PSession.PROTO_DATAGRAM, _qPort);
_session.addMuxedSessionListener(this, I2PSession.PROTO_DATAGRAM_RAW, _rPort);
_session.addMuxedSessionListener(this, I2PSession.PROTO_DATAGRAM, _qPort);
_knownNodes.start();
_tracker.start();
PersistDHT.loadDHT(this, _dhtFile);

View File

@ -56,7 +56,7 @@ abstract class PersistDHT {
}
public static synchronized void saveDHT(DHTNodes nodes, File file) {
if (nodes.isEmpty())
if (nodes.size() <= 0)
return;
Log log = I2PAppContext.getGlobalContext().logManager().getLog(PersistDHT.class);
int count = 0;