summaryrefslogtreecommitdiffhomepage
path: root/talpid-core/src
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2023-10-03 14:33:56 +0200
committerDavid Lönnhager <david.l@mullvad.net>2023-10-05 15:17:12 +0200
commit4399583c323784d5352a659dc32fcee39c87b9b3 (patch)
treeb5695f0b0b72917a250f9a197fb2b93de911f011 /talpid-core/src
parent3acb56f0e087746c574bf48f64b73871c6e411b9 (diff)
downloadmullvadvpn-4399583c323784d5352a659dc32fcee39c87b9b3.tar.xz
mullvadvpn-4399583c323784d5352a659dc32fcee39c87b9b3.zip
Coalesce route events in macOS route monitor
Diffstat (limited to 'talpid-core/src')
-rw-r--r--talpid-core/src/offline/macos.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/talpid-core/src/offline/macos.rs b/talpid-core/src/offline/macos.rs
index 7f13638ec9..9be5aae8a8 100644
--- a/talpid-core/src/offline/macos.rs
+++ b/talpid-core/src/offline/macos.rs
@@ -12,9 +12,6 @@ use std::sync::{
};
use talpid_routing::{DefaultRouteEvent, RouteManagerHandle};
-/// How long to wait before announcing changes to the offline state
-//const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(2);
-
#[derive(err_derive::Error, Debug)]
pub enum Error {
#[error(display = "Failed to initialize route monitor")]
@@ -120,11 +117,6 @@ pub async fn spawn_monitor(
None => return,
};
- // Debounce event updates
- // FIXME: Debounce is disabled because the DNS config can get messed up
- // when switching between networks otherwise.
- //tokio::time::sleep(DEBOUNCE_INTERVAL).await;
-
if prev_notified.swap(new_connectivity, Ordering::AcqRel) == new_connectivity {
// We don't care about network changes here
return;