Fixed synchronization

This commit is contained in:
2016-01-17 07:13:29 +01:00
parent ac6f291964
commit 35077243b0
2 changed files with 5 additions and 5 deletions

View File

@ -350,7 +350,7 @@ class Connection {
send(new Version.Builder().defaults().addrFrom(host).addrRecv(node).build());
}
while (state != DISCONNECTED) {
if (requestedObjects.isEmpty()) {
if (mode != SYNC && state == ACTIVE && requestedObjects.isEmpty()) {
Thread.sleep(1000);
} else {
Thread.sleep(100);