Skip to content

Commit

Permalink
Terminate n2n as soon as the stop command is received
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele-f committed Jul 1, 2020
1 parent a2a817b commit 33dd97c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/edge_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33dd97c

Please sign in to comment.