aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/command_line/daemon/hicnLightDaemon_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src/hicn/command_line/daemon/hicnLightDaemon_main.c')
-rw-r--r--hicn-light/src/hicn/command_line/daemon/hicnLightDaemon_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hicn-light/src/hicn/command_line/daemon/hicnLightDaemon_main.c b/hicn-light/src/hicn/command_line/daemon/hicnLightDaemon_main.c
index 89a80d0b1..ab7039f5e 100644
--- a/hicn-light/src/hicn/command_line/daemon/hicnLightDaemon_main.c
+++ b/hicn-light/src/hicn/command_line/daemon/hicnLightDaemon_main.c
@@ -374,6 +374,7 @@ int main(int argc, const char *argv[]) {
logger_Log(logger, LoggerFacility_Core, PARCLogLevel_Error, "daemon",
"Forwarder initialization failed. Are you running it with sudo "
"privileges?");
+ logger_Release(&logger);
return -1;
}
@@ -402,9 +403,9 @@ int main(int argc, const char *argv[]) {
forwarder_Destroy(&forwarder);
#ifndef _WIN32
- sleep(2);
+ //sleep(2);
#else
- Sleep(2000);
+ //Sleep(2000);
WSACleanup();
#endif