Skip to content

Commit

Permalink
Add a little buffer to heartbeat timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jkcoxson committed Jan 23, 2025
1 parent d705b0b commit 1a900f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/heartbeat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ pub async fn heartbeat(
idevice.start_session(&pairing_file).await?;

tokio::spawn(async {
let mut interval = 15;
let mut interval = 10;
let mut heartbeat_client = HeartbeatClient { idevice };
let pls_stop = pls_stop;
loop {
match heartbeat_client.get_marco(interval).await {
match heartbeat_client.get_marco(interval + 5).await {
Ok(i) => {
interval = i;
}
Expand Down

0 comments on commit 1a900f7

Please sign in to comment.