mirror of
https://github.com/lxsang/antd-tunnel-plugin
synced 2024-11-16 09:48:21 +01:00
improvement api
This commit is contained in:
parent
89b52082d9
commit
4a2b7ca22e
BIN
dist/tunnel-0.1.0b.tar.gz
vendored
BIN
dist/tunnel-0.1.0b.tar.gz
vendored
Binary file not shown.
5
tunnel.c
5
tunnel.c
@ -769,10 +769,13 @@ void destroy()
|
||||
(void)snprintf(path, BUFFLEN, "%s/%s/%s", __plugin__.tmpdir, SOCK_DIR_NAME, HOT_LINE_SOCKET);
|
||||
(void)unlink(path);
|
||||
}
|
||||
pthread_mutex_unlock(&g_tunnel.lock);
|
||||
pthread_cancel(g_tunnel.tid);
|
||||
LOG("Joining tunnel thread");
|
||||
(void)pthread_join(g_tunnel.tid, NULL);
|
||||
pthread_mutex_unlock(&g_tunnel.lock);
|
||||
bst_free(g_tunnel.channels);
|
||||
pthread_mutex_destroy(&g_tunnel.lock);
|
||||
LOG("Antd tunnel is destroyed");
|
||||
}
|
||||
}
|
||||
static void process_client_message(antd_tunnel_msg_t *msg, antd_client_t *client)
|
||||
|
Loading…
Reference in New Issue
Block a user