Jigger with shutdown method to avoid a crash on CTRL+C in Windows. Feels a big hacky, might revisit later.
This commit is contained in:
parent
0afcf4877c
commit
01a70d09db
4 changed files with 27 additions and 31 deletions
|
@ -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>((Network *)arg),from,to,etherType,data);
|
||||
} catch (std::exception &exc) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue