mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
Terminate n2n as soon as the stop command is received
This commit is contained in:
parent
a2a817b1a7
commit
33dd97c798
|
@ -1947,6 +1947,9 @@ int run_edge_loop(n2n_edge_t * eee, int *keep_running) {
|
|||
/* Read a cooked socket from the internet socket. Writes on the TAP
|
||||
* socket. */
|
||||
readFromMgmtSocket(eee, keep_running);
|
||||
|
||||
if(!(*keep_running))
|
||||
break;
|
||||
}
|
||||
|
||||
#ifndef WIN32
|
||||
|
|
Loading…
Reference in New Issue
Block a user