Some optimization for P2P part. Added panic on error of reregistering server token - needed for investigation of stuck network.

This commit is contained in:
Revertron
2021-04-01 14:44:37 +02:00
parent d70b107955
commit 8d7f1b2c6b
3 changed files with 42 additions and 54 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ impl Peer {
}
pub fn disabled(&self) -> bool {
self.state.disabled()
self.state.disabled() || self.reconnects > 2
}
pub fn is_inbound(&self) -> bool {