if (s->destroy_counter != s->activity_counter)
must_destroy = 0;
- /* only if there are no active Z39.50 clients we will allow it to be
- destroyed */
- if (session_active_clients(s->psession))
- must_destroy = 0;
-
s->destroy_counter = s->activity_counter = 0;
if (must_destroy)
{
destroy_session(s->psession);
nmem_destroy(s->nmem);
}
+ else {
+ yaz_log(YLOG_LOG, "Active clients on session %u. Waiting for new timeout.", s->session_id);
+ }
+
}
static const char *get_msg(enum pazpar2_error_code code)