]> code.citadel.org Git - citadel.git/blobdiff - citadel/commands.c
* Numerous fixups needed for Windows port:
[citadel.git] / citadel / commands.c
index f7a9a36b32dc7921b01c8d287f51b58a9e985449..a3d471978b2539346c7348e492b564d421090490 100644 (file)
@@ -352,6 +352,12 @@ static void really_do_keepalive(void) {
 
        time(&idlet);
 
+       /* This may sometimes get called before we are actually connected
+        * to the server.  Don't do anything if we aren't connected. -IO
+        */
+       if (!ipc_for_signal_handlers)
+               return;
+
        /* If full keepalives are enabled, send a NOOP to the server and
         * wait for a response.
         */