浏览代码

dhcp: Clear expiration time on reset.

Dario Nieuwenhuis 4 年之前
父节点
当前提交
bf2864ad5a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/dhcp/clientv4.rs

+ 1 - 0
src/dhcp/clientv4.rs

@@ -352,6 +352,7 @@ impl Client {
         net_trace!("DHCP reset");
         self.state = ClientState::Discovering;
         self.next_egress = now;
+        self.lease_expiration = None;
     }
 }