diff options
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r-- | src/anytun.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp index 6ae4217..4fa0b25 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -318,21 +318,15 @@ void receiver(TunDevice* dev, PacketSource* src) } } -#ifndef NO_DAEMON -void startSendRecvThreads(PrivInfo& privs, TunDevice* dev, PacketSource* src) -#else void startSendRecvThreads(TunDevice* dev, PacketSource* src) -#endif { src->waitUntilReady(); - boost::thread(boost::bind(sender, dev, src)); boost::thread(boost::bind(receiver, dev, src)); } - #ifdef WIN_SERVICE int main(int argc, char* argv[]) { @@ -472,13 +466,9 @@ int main(int argc, char* argv[]) connectThreads.create_thread(boost::bind(syncConnector, *it)); #endif - // wait for packet source to finish in a seperate thread in order - // to be still able to process signals while waiting -#ifndef NO_DAEMON - boost::thread(boost::bind(startSendRecvThreads, privs, &dev, src)); -#else + // wait for packet source to finish in a seperate thread in order + // to be still able to process signals while waiting boost::thread(boost::bind(startSendRecvThreads, &dev, src)); -#endif #if defined(WIN_SERVICE) int ret = 0; |