Skip to content

Commit

Permalink
Fixed a bug with closing the VPN loop on shutdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
zlogic committed Dec 4, 2024
1 parent 35b765e commit 7577b81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ikev2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,8 @@ impl FortiService {
}
if let Err(err) = result.as_ref() {
warn!("VPN channel closed with error: {}", err)
} else if tunnel_rx.is_closed() {
}
if tunnel_rx.is_closed() {
debug!("VPN listener is terminated");
return Ok(());
}
Expand Down

0 comments on commit 7577b81

Please sign in to comment.