* Noticed that when serv_chat.c sets async_waiting to 1, it also checks to see if...
[citadel.git] / citadel / modules / xmpp / xmpp_queue.c
index 3bd8c95d7bdf2d871c22b988a1242e88f833a20e..24e474aa4cbac21842056149fe25b3c361d212d9 100644 (file)
@@ -113,7 +113,7 @@ void xmpp_queue_event(int event_type, char *email_addr) {
        begin_critical_section(S_SESSION_TABLE);
        for (cptr = ContextList; cptr != NULL; cptr = cptr->next) {
                if ((cptr->logged_in) && (cptr->h_async_function == xmpp_async_loop)) {
-                       cptr->async_waiting = 1;
+                       set_async_waiting(cptr);
                }
        }
        end_critical_section(S_SESSION_TABLE);