static void session_remove_clients(struct session *se)
{
- struct client *cl = se->clients;
- while (cl)
+ while (se->clients)
{
- struct client *cl_next = client_next_in_session(cl);
+ struct client *cl = se->clients;
client_remove_from_session(cl);
client_destroy(cl);
- cl = cl_next;
}
- se->clients = 0;
}
// Associates a set of clients with a session;