CtdlThreadSchedule() considered harmful. Eliminate. Replaced all
[citadel.git] / citadel / context.c
index aa6033c80889f0ba3abb1e60a4971f761cc9ece0..922f0675db24dda2dd6d56054a09cd09f990bedb 100644 (file)
@@ -437,6 +437,7 @@ void CtdlFillSystemContext(CitContext *context, char *name)
        strcat (sysname, name);
        len = cutuserkey(sysname);
        memcpy(context->curr_user, sysname, len + 1);
+       context->client_socket = (-1);
 
        /* internal_create_user has the side effect of loading the user regardless of wether they
         * already existed or needed to be created