From 01a70d09db917ce475120854514ee48af43cc1b1 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 27 Aug 2013 18:00:07 -0400 Subject: Jigger with shutdown method to avoid a crash on CTRL+C in Windows. Feels a big hacky, might revisit later. --- node/Network.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node/Network.cpp') diff --git a/node/Network.cpp b/node/Network.cpp index 730e86d2..1e436a27 100644 --- a/node/Network.cpp +++ b/node/Network.cpp @@ -282,6 +282,8 @@ void Network::_CBhandleTapData(void *arg,const MAC &from,const MAC &to,unsigned if (!((Network *)arg)->_ready) return; const RuntimeEnvironment *_r = ((Network *)arg)->_r; + if (_r->shutdownInProgress) + return; try { _r->sw->onLocalEthernet(SharedPtr((Network *)arg),from,to,etherType,data); } catch (std::exception &exc) { -- cgit v1.2.3