Skip to content

Commit bf5e21f

Browse files
authored
Fix socket double close in swclt_wss_destroy() (#141)
1 parent e8d6757 commit bf5e21f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/transport/websocket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ SWCLT_DECLARE(void) swclt_wss_destroy(swclt_wss_t **wss)
312312
if ((*wss)->reader_thread) {
313313
ks_thread_request_stop((*wss)->reader_thread);
314314
}
315-
ks_socket_close(&(*wss)->socket);
315+
316316
if ((*wss)->reader_thread) {
317317
ks_thread_join((*wss)->reader_thread);
318318
ks_thread_destroy(&(*wss)->reader_thread);

0 commit comments

Comments
 (0)