node: do not restart on 0 peers

This commit is contained in:
ardocrat 2024-07-09 16:06:36 +03:00
parent ab9117cceb
commit 8d66087d68

View file

@ -300,12 +300,6 @@ impl Node {
NODE_STATE.starting.store(false, Ordering::Relaxed);
first_start = false;
}
// Restart node on running status and 0 peers (usual case for Mobile).
if stats.peer_count == 0 && stats.sync_status == SyncStatus::NoSync {
Node::restart();
continue;
}
}
// Reset stratum server start flag.