summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/anytun.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp
index b5d7e14..eb7c1a8 100644
--- a/src/anytun.cpp
+++ b/src/anytun.cpp
@@ -451,9 +451,9 @@ int main(int argc, char* argv[])
#ifndef NOSIGNALCONTROLLER
int ret = sig.run();
- return ret;
#else
receiver(&p);
+ int ret = 0;
#endif
// TODO cleanup threads here!
/*
@@ -480,6 +480,7 @@ int main(int argc, char* argv[])
if(connTo)
delete connTo;
*/
+ return ret;
}
catch(std::runtime_error& e)
{