mirror of
https://github.com/ntop/n2n.git
synced 2026-10-21 04:31:51 +00:00
moved up 'send_unregister_super()' to happen before 'WaitForSingleObject()' (Windows TAP thread's end)
This commit is contained in:
+2
-2
@@ -3163,12 +3163,12 @@ int run_edge_loop (n2n_edge_t *eee, int *keep_running) {
|
||||
|
||||
} /* while */
|
||||
|
||||
send_unregister_super(eee);
|
||||
|
||||
#ifdef WIN32
|
||||
WaitForSingleObject(tun_read_thread, INFINITE);
|
||||
#endif
|
||||
|
||||
send_unregister_super(eee);
|
||||
|
||||
closesocket(eee->sock);
|
||||
|
||||
return(0);
|
||||
|
||||
Reference in New Issue
Block a user