* just anounce "new context" if we create a non static context
authorWilfried Göesgens <willi@citadel.org>
Thu, 10 Dec 2009 22:16:58 +0000 (22:16 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 10 Dec 2009 22:16:58 +0000 (22:16 +0000)
webcit/context_loop.c

index e0577d7eb4585aa4b720a69d08135aba51c6dc03..aca0cd47a14874b17d674691335490fc51a46bcf 100644 (file)
@@ -180,7 +180,8 @@ wcsession *FindSession(wcsession **wclist, ParsedHttpHdrs *Hdr, pthread_mutex_t
 wcsession *CreateSession(int Lockable, int Static, wcsession **wclist, ParsedHttpHdrs *Hdr, pthread_mutex_t *ListMutex)
 {
        wcsession *TheSession;
-       lprintf(3, "Creating a new session\n");
+       if (!Static)
+               lprintf(3, "Creating a new session\n");
        TheSession = (wcsession *) malloc(sizeof(wcsession));
        memset(TheSession, 0, sizeof(wcsession));
        TheSession->Hdr = Hdr;