From 749ea76678969abf0958cfbbe7c002a755dd13f6 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Mon, 23 Jun 2014 18:20:32 +0100 Subject: [PATCH] Typo. --- src/websockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websockets.c b/src/websockets.c index d31ed5ed..ab16a93d 100644 --- a/src/websockets.c +++ b/src/websockets.c @@ -130,7 +130,7 @@ static int callback_mqtt(struct libwebsocket_context *context, case LWS_CALLBACK_CLOSED: mosq = u->mosq; mqtt3_context_disconnect(db, mosq); - if(context->clean_session){ + if(mosq->clean_session){ mqtt3_context_cleanup(db, mosq, true); } mosq->wsi = NULL;