Explorar o código

Match silent_until behavior of NeighborState and Cache

Thales Fragoso %!s(int64=4) %!d(string=hai) anos
pai
achega
39c41afb68
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {