context->mosq in websockets.

This commit is contained in:
Roger A. Light 2020-09-25 09:15:22 +01:00
parent 7cce159ff4
commit 67549f48ba

View File

@ -435,7 +435,7 @@ static int callback_mqtt(struct libwebsocket_context *context,
/* Free data and reset values */
packet__cleanup(&mosq->in_packet);
keepalive__update(context);
keepalive__update(mosq);
if(rc && (mosq->out_packet || mosq->current_out_packet)) {
if(mosq->state != mosq_cs_disconnecting){