mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
bug fix
This commit is contained in:
parent
d89c60d8b6
commit
81b23397f4
|
@ -354,12 +354,13 @@ int stop_edge(void)
|
|||
peer_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
||||
peer_addr.sin_port = htons(N2N_EDGE_MGMT_PORT);
|
||||
sendto(fd, "stop", 4, 0, (struct sockaddr *)&peer_addr, sizeof(struct sockaddr_in));
|
||||
|
||||
close(fd);
|
||||
|
||||
pthread_mutex_lock(&status.mutex);
|
||||
status.is_running = 0;
|
||||
pthread_mutex_unlock(&status.mutex);
|
||||
report_edge_status();
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif /* #ifdef __ANDROID_NDK__ */
|
||||
|
|
Loading…
Reference in New Issue
Block a user