X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fsession.c;h=fcf29fa9bdd7ae001b9c2de2b32f3999b232d04b;hb=6d01755305a7afba15ed4bc90ac9c149ee7d130e;hp=f7f687da91f915d905da9bf748ca9a8a7d71fafe;hpb=6aed90d2cb69a71e6510475982d56933fb401606;p=pazpar2-moved-to-github.git diff --git a/src/session.c b/src/session.c index f7f687d..fcf29fa 100644 --- a/src/session.c +++ b/src/session.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2011 Index Data + Copyright (C) 2006-2012 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -648,11 +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; - if (client_prep_connection(cl, se->service->z3950_operation_timeout, - se->service->z3950_session_timeout, - se->service->server->iochan_man, - &tval)) + 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);