mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
ss: smd: make sure to cancel write sul
This commit is contained in:
parent
ad11a09a79
commit
0d720082fb
1 changed files with 7 additions and 3 deletions
|
@ -893,10 +893,14 @@ lws_ss_destroy(lws_ss_handle_t **ppss)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(LWS_WITH_SYS_SMD)
|
#if defined(LWS_WITH_SYS_SMD)
|
||||||
if (h->policy == &pol_smd && h->u.smd.smd_peer) {
|
if (h->policy == &pol_smd) {
|
||||||
|
lws_sul_cancel(&h->u.smd.sul_write);
|
||||||
|
|
||||||
|
if (h->u.smd.smd_peer) {
|
||||||
lws_smd_unregister(h->u.smd.smd_peer);
|
lws_smd_unregister(h->u.smd.smd_peer);
|
||||||
h->u.smd.smd_peer = NULL;
|
h->u.smd.smd_peer = NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pt = &h->context->pt[h->tsi];
|
pt = &h->context->pt[h->tsi];
|
||||||
|
|
Loading…
Add table
Reference in a new issue