Reduce Android and iOS background work
This commit is contained in:
@@ -478,6 +478,10 @@ impl Engine {
|
||||
route_task: Mutex::new(Some(route_task)),
|
||||
})
|
||||
}
|
||||
pub fn is_running(&self) -> bool {
|
||||
self.instance.state() == easytier_core::instance::CoreInstanceState::Running
|
||||
}
|
||||
|
||||
/// Notifies on every change of the destinations to route through the mesh.
|
||||
pub fn watch_mesh_routes(&self) -> tokio::sync::watch::Receiver<MeshRoutes> {
|
||||
self.routes.subscribe()
|
||||
|
||||
Reference in New Issue
Block a user