diff options
| -rw-r--r-- | talpid-tunnel-config-client/src/ios_ffi/ios_runtime.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/talpid-tunnel-config-client/src/ios_ffi/ios_runtime.rs b/talpid-tunnel-config-client/src/ios_ffi/ios_runtime.rs index 37fdb0d16d..2989b4fb48 100644 --- a/talpid-tunnel-config-client/src/ios_ffi/ios_runtime.rs +++ b/talpid-tunnel-config-client/src/ios_ffi/ios_runtime.rs @@ -158,6 +158,11 @@ impl IOSRuntime { } } + _ = tokio::time::sleep(std::time::Duration::from_secs(5)) => { + unsafe { swift_post_quantum_key_ready(packet_tunnel_ptr, ptr::null(), ptr::null()); } + shutdown_handle.shutdown() + } + _ = cancel_token_rx.recv() => { shutdown_handle.shutdown() // The swift runtime pre emptively cancelled the key exchange, nothing to do here. |
