1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00

fix: minor fixes

This commit is contained in:
Falk Werner 2020-06-13 23:45:29 +02:00
parent 51cb628410
commit ed39db2d8d

View File

@ -136,12 +136,13 @@ static int wf_impl_client_protocol_lws_callback(
break;
case LWS_CALLBACK_CLIENT_CONNECTION_ERROR:
protocol->is_connected = false;
protocol->wsi = NULL;
protocol->callback(protocol->user_data, WF_CLIENT_DISCONNECTED, NULL);
break;
case LWS_CALLBACK_CLIENT_CLOSED:
protocol->is_connected = false;
protocol->callback(protocol->user_data, WF_CLIENT_DISCONNECTED, NULL);
protocol->wsi = NULL;
protocol->callback(protocol->user_data, WF_CLIENT_DISCONNECTED, NULL);
break;
case LWS_CALLBACK_CLIENT_RECEIVE:
wf_impl_client_protocol_process(protocol, in, len);
@ -167,6 +168,7 @@ static int wf_impl_client_protocol_lws_callback(
}
}
}
break;
default:
break;
}