提交 da0c0c0e authored 作者: Anthony Minessale's avatar Anthony Minessale

revert 02c329da and put proper fix

上级 94d45019
...@@ -464,7 +464,7 @@ static void tport_ws_deinit_secondary(tport_t *self) ...@@ -464,7 +464,7 @@ static void tport_ws_deinit_secondary(tport_t *self)
wsh_t *wsh = wstp->ws; wsh_t *wsh = wstp->ws;
SU_DEBUG_1(("%p destroy ws%s transport %p.\n", (void *) self, wstp->ws_secure ? "s" : "", (void *) wsh)); SU_DEBUG_1(("%p destroy ws%s transport %p.\n", (void *) self, wstp->ws_secure ? "s" : "", (void *) wsh));
ws_destroy(&wsh); ws_destroy(&wsh);
wstp->ws_initialized = 0; wstp->ws_initialized = 1;
} }
} }
......
...@@ -57,7 +57,7 @@ typedef struct tport_ws_s { ...@@ -57,7 +57,7 @@ typedef struct tport_ws_s {
tport_t wstp_tp[1]; tport_t wstp_tp[1];
wsh_t ws[1]; wsh_t ws[1];
char *wstp_buffer; char *wstp_buffer;
unsigned ws_initialized:1; SU_S8_T ws_initialized;
unsigned ws_secure:1; unsigned ws_secure:1;
unsigned:0; unsigned:0;
} tport_ws_t; } tport_ws_t;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论