Browse Source
Merge pull request #288 from emanuele-f/termination_fix
Terminate n2n as soon as the stop command is received
pull/290/head
Luca Deri
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
src/edge_utils.c
|
@ -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
|
|
|
/* Read a cooked socket from the internet socket. Writes on the TAP
|
|
|
* socket. */ |
|
|
* socket. */ |
|
|
readFromMgmtSocket(eee, keep_running); |
|
|
readFromMgmtSocket(eee, keep_running); |
|
|
|
|
|
|
|
|
|
|
|
if(!(*keep_running)) |
|
|
|
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#ifndef WIN32 |
|
|
#ifndef WIN32 |
|
|