summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-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