Prechádzať zdrojové kódy

Match silent_until behavior of NeighborState and Cache

Thales Fragoso 4 rokov pred
rodič
commit
39c41afb68
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/socket/meta.rs

+ 1 - 1
src/socket/meta.rs

@@ -70,7 +70,7 @@ impl Meta {
                                self.handle, neighbor);
                     self.neighbor_state = NeighborState::Active;
                     true
-                } else if timestamp > silent_until {
+                } else if timestamp >= silent_until {
                     net_trace!("{}: neighbor {} silence timer expired, rediscovering", self.handle, neighbor);
                     true
                 } else {