mirror of
https://github.com/lxsang/antd-wvnc-plugin.git
synced 2024-12-27 12:28:22 +01:00
dont close websocket after receiving close frame
Some checks reported errors
gitea-sync/antd-wvnc-plugin/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
gitea-sync/antd-wvnc-plugin/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
59e8257f12
commit
c860d23b21
2
wvnc.c
2
wvnc.c
@ -197,7 +197,7 @@ void *process(void *data, int wait)
|
|||||||
if (h->opcode == WS_CLOSE)
|
if (h->opcode == WS_CLOSE)
|
||||||
{
|
{
|
||||||
LOG("Websocket: connection closed");
|
LOG("Websocket: connection closed");
|
||||||
ws_close(user_data->wscl->client, 1011);
|
//ws_close(user_data->wscl->client, 1011);
|
||||||
user_data->status = DISCONNECTED;
|
user_data->status = DISCONNECTED;
|
||||||
free(h);
|
free(h);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user