]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/jabber/xmpp_queue.c
When dumping or scanning the wholist in the Jabber
[citadel.git] / citadel / modules / jabber / xmpp_queue.c
index 866083393d136d69ff27a0b64c900a121bb57f54..44540496bfc5f5d34903fcea00583d5b1cfe1186 100644 (file)
@@ -100,7 +100,7 @@ void xmpp_queue_event(int event_type, char *email_addr) {
 
        /* Tell the sessions that something is happening */
        for (cptr = ContextList; cptr != NULL; cptr = cptr->next) {
-               if (cptr->h_async_function == xmpp_async_loop) {
+               if ((cptr->logged_in) && (cptr->h_async_function == xmpp_async_loop)) {
                        cptr->async_waiting = 1;
                }
        }