diff --git a/lib/src/api/engine/remote/ws/native.rs b/lib/src/api/engine/remote/ws/native.rs index de04bc0e..f8f8a696 100644 --- a/lib/src/api/engine/remote/ws/native.rs +++ b/lib/src/api/engine/remote/ws/native.rs @@ -198,8 +198,6 @@ pub(crate) fn router( let mut interval = time::interval(PING_INTERVAL); // don't bombard the server with pings if we miss some ticks interval.set_missed_tick_behavior(MissedTickBehavior::Delay); - // Delay sending the first ping - interval.tick().await; let pinger = IntervalStream::new(interval); diff --git a/lib/src/api/engine/remote/ws/wasm.rs b/lib/src/api/engine/remote/ws/wasm.rs index 46d28dc2..1d2d4213 100644 --- a/lib/src/api/engine/remote/ws/wasm.rs +++ b/lib/src/api/engine/remote/ws/wasm.rs @@ -171,8 +171,6 @@ pub(crate) fn router( let mut interval = time::interval(PING_INTERVAL); // don't bombard the server with pings if we miss some ticks interval.set_missed_tick_behavior(MissedTickBehavior::Delay); - // Delay sending the first ping - interval.tick().await; let pinger = IntervalStream::new(interval);