X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fconnection.c;h=e765435e0e55248e0ef27bceb44302caab78b88a;hb=419a9b497318d051f7b1dd6b1d123a7ee31a7ee0;hp=260196c8396817fcab80253f0fb5442ba0338c8d;hpb=c9622100910b5393ed9169887f73a663e0bb40b9;p=pazpar2-moved-to-github.git diff --git a/src/connection.c b/src/connection.c index 260196c..e765435 100644 --- a/src/connection.c +++ b/src/connection.c @@ -173,7 +173,6 @@ static void non_block_events(struct connection *co) continue; ev = ZOOM_connection_last_event(link); - client_incref(cl); #if 0 yaz_log(YLOG_LOG, "ZOOM_EVENT_%s", ZOOM_get_event_str(ev)); #endif @@ -220,16 +219,13 @@ static void non_block_events(struct connection *co) yaz_log(YLOG_LOG, "Unhandled event (%d) from %s", ev, client_get_url(cl)); } - client_destroy(cl); } if (got_records) { struct client *cl = co->client; if (cl) { - client_incref(cl); client_got_records(cl); - client_destroy(cl); } } }