From 0d18c263fd7a957f50ebdc4e1d7abd83b8651dc4 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 11 Dec 2015 18:33:30 +0100 Subject: [PATCH] fixed hanging shutdown of websocket node type --- lib/websocket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/websocket.c b/lib/websocket.c index 46521922f..14f2a1780 100644 --- a/lib/websocket.c +++ b/lib/websocket.c @@ -302,6 +302,7 @@ int websocket_init(int argc, char * argv[], config_setting_t *cfg) int websocket_deinit() { + pthread_cancel(global.thread); pthread_join(global.thread, NULL); lws_cancel_service(global.context);