From 6f15cc2bff396cec081b969bf5b3097bfbafe4d5 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 27 Aug 2011 19:25:57 -0400 Subject: [PATCH] Clear of non-default language setting moved to its proper place --- webcit/context_loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 3122ce494..f3d54c4ce 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -612,12 +612,12 @@ void context_loop(ParsedHttpHdrs *Hdr) * spider crawls the site without using cookies. */ if ((session_may_be_reused) && (!WC->logged_in)) { - WC->wc_session = 0; + WC->wc_session = 0; /* flag as available for re-use */ + TheSession->selected_language = 0; /* clear any non-default language setting */ } TheSession->Hdr = NULL; TheSession->inuse = 0; /* mark the session as unbound */ - TheSession->selected_language = 0; /* clear any non-default language setting */ CtdlLogResult(pthread_mutex_unlock(&TheSession->SessionMutex)); } -- 2.30.2