From: Adam Dickmeiss Date: Tue, 17 Jan 2012 11:18:44 +0000 (+0100) Subject: Sort: more strict re-searching X-Git-Tag: v1.6.8~4 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=e78a02092641952d74a56396c6d281b225888cd1;p=pazpar2-moved-to-github.git Sort: more strict re-searching Only search+sort for working, idle clients. --- diff --git a/src/session.c b/src/session.c index 78aad61..3e00cc1 100644 --- a/src/session.c +++ b/src/session.c @@ -648,12 +648,9 @@ void session_sort(struct session *se, const char *field, int increasing) for (l = se->clients_active; l; l = l->next) { struct client *cl = l->client; - struct timeval tval; - int ret = client_prep_connection(cl, se->service->z3950_operation_timeout, - se->service->z3950_session_timeout, - se->service->server->iochan_man, - &tval, 1); - if (ret) + if (client_get_state(cl) == Client_Connecting || + client_get_state(cl) == Client_Idle || + client_get_state(cl) == Client_Working) client_start_search(cl); } session_leave(se);