X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=f3d54c4ce0bfd099f186194a9d1d753143500442;hb=27547558109f4be7792966f9c9967fdbaa9aa027;hp=3122ce49448fbf43e2563ec0f79d29a1b32633b0;hpb=ee382f1aeb267be1a6a0b3241d530614cfaf443b;p=citadel.git 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)); }