From 20ac8cf05ab2af716ae000f97da835933e17db2e Mon Sep 17 00:00:00 2001 From: Max Lv Date: Wed, 12 Nov 2014 10:01:07 +0800 Subject: [PATCH] refine the log --- src/local.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/local.c b/src/local.c index 46846273..13da08e5 100644 --- a/src/local.c +++ b/src/local.c @@ -1209,8 +1209,15 @@ int main (int argc, char **argv) // Init connections TAILQ_INIT(&connections); + // Enter the loop ev_run (loop, 0); + if (verbose) + { + LOGD("closed nicely."); + } + + // Clean up free_connections(loop); free_udprelay(); @@ -1319,8 +1326,15 @@ int start_ss_local_server(profile_t profile) // Init connections TAILQ_INIT(&connections); + // Enter the loop ev_run (loop, 0); + if (verbose) + { + LOGD("closed nicely."); + } + + // Clean up free_connections(loop); free_udprelay();