From f07f87b37416c1ec3046a52f7e229661728b28bf Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 20 Sep 2010 15:52:15 -0400 Subject: [PATCH] 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. --- citadel/context.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2