node: do not restart on 0 peers
This commit is contained in:
parent
ab9117cceb
commit
8d66087d68
1 changed files with 0 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue