1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

ss: server: dont allow client request_tx path even if disconnected

This commit is contained in:
Andy Green 2020-09-11 10:24:31 +01:00
parent 6a32db56bc
commit a7c9af5ac5

View file

@ -899,6 +899,9 @@ lws_ss_request_tx(lws_ss_handle_t *h)
return LWSSSSRET_OK;
}
if (h->policy->flags & LWSSSPOLF_SERVER)
return LWSSSSRET_OK;
/*
* there's currently no wsi / connection associated with the ss handle
*/