diff --git a/gpcommon/src/vpn/mod.rs b/gpcommon/src/vpn/mod.rs index 4bd78ce..85122ea 100644 --- a/gpcommon/src/vpn/mod.rs +++ b/gpcommon/src/vpn/mod.rs @@ -103,16 +103,16 @@ impl Vpn { status_holder.blocking_lock().set(VpnStatus::Disconnected); }); - info!("Waiting for the VPN connection..."); + info!("Waiting for the VPN to connect..."); if let Some(cmd_pipe_fd) = vpn_rx.recv().await { info!("VPN connection started, cmd_pipe_fd: {}", cmd_pipe_fd); self.status_holder.lock().await.set(VpnStatus::Connected); + Ok(()) } else { warn!("VPN connection failed to start"); + Err("VPN connection failed to start".into()) } - - Ok(()) } pub async fn disconnect(&self) {