aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-12-16 15:26:15 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-12-16 15:26:15 +0100
commitfd3ba63e80e7f97ae89ab5938fe6594c2d1c0869 (patch)
treeeb4d998b2e2b19440466c17a22d5742cd9ebdfc7 /src/main.rs
parentRemoved unused atexit (diff)
downloadwireguard-rs-fd3ba63e80e7f97ae89ab5938fe6594c2d1c0869.tar.xz
wireguard-rs-fd3ba63e80e7f97ae89ab5938fe6594c2d1c0869.zip
Revert to crossbeam
Diffstat (limited to '')
-rw-r--r--src/main.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index 087b54b..59b21e5 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -180,14 +180,11 @@ fn main() {
});
}
Err(err) => {
- log::info!("UAPI error: {}", err);
- break;
+ log::info!("UAPI connection error: {}", err);
+ profiler_stop();
+ exit(0);
}
}
-
- // exit
- profiler_stop();
- exit(0);
});
// block until all tun readers closed