From: Art Cancro Date: Mon, 20 Sep 2010 19:52:15 +0000 (-0400) Subject: When creating a new context, set lastcmd to now. X-Git-Tag: v8.01~702^2~3 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=f07f87b37416c1ec3046a52f7e229661728b28bf When creating a new context, set lastcmd to now. This prevents the idle timer from performing acts of infanticide. It also solves, once and for all, the "unexpected answer from Citadel server; bailing out" error messages in webcit. --- diff --git a/citadel/context.c b/citadel/context.c index 922f0675d..f6bbf58b6 100644 --- a/citadel/context.c +++ b/citadel/context.c @@ -383,6 +383,7 @@ CitContext *CreateNewContext(void) { me->cs_pid = ++next_pid; me->prev = NULL; me->next = ContextList; + me->lastcmd = time(NULL); /* set lastcmd to now to prevent idle timer infanticide */ ContextList = me; if (me->next != NULL) { me->next->prev = me;