We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 027f501 commit 93ca0e4Copy full SHA for 93ca0e4
1 file changed
src/hp/magicsock/conn.rs
@@ -1602,6 +1602,11 @@ impl Actor {
1602
self.periodic_re_stun_timer = new_re_stun_timer();
1603
}
1604
1605
+ self.endpoints_update_state
1606
+ .running
1607
+ .send(None)
1608
+ .expect("sender not go away");
1609
+
1610
debug!("endpoint update done ({})", why);
1611
1612
@@ -2789,7 +2794,7 @@ fn new_re_stun_timer() -> time::Interval {
2789
2794
let mut rng = rand::thread_rng();
2790
2795
let d: Duration = rng.gen_range(Duration::from_secs(20)..=Duration::from_secs(26));
2791
2796
debug!("scheduling periodic_stun to run in {}s", d.as_secs());
2792
- time::interval(d)
2797
+ time::interval_at(time::Instant::now() + d, d)
2793
2798
2799
2800
/// Initial connection setup.
0 commit comments