Disconnect expired clients correctly.

pull/211/merge
Roger A. Light 11 years ago
parent 580cd722dc
commit 76724c790e

@ -246,8 +246,7 @@ int mosquitto_main_loop(struct mosquitto_db *db, int *listensock, int listensock
g_clients_expired++; g_clients_expired++;
#endif #endif
context->clean_session = true; context->clean_session = true;
mqtt3_context_cleanup(db, context, true); do_disconnect(db, context);
context = NULL;
} }
} }
} }

Loading…
Cancel
Save