Now also release termlist watch
authorDennis Schafroth <dennis@indexdata.com>
Fri, 4 Nov 2011 12:06:48 +0000 (13:06 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Fri, 4 Nov 2011 12:06:48 +0000 (13:06 +0100)
src/client.c

index b5ef75d..5df785d 100644 (file)
@@ -180,6 +180,7 @@ void client_set_state(struct client *cl, enum client_state st)
         if (no_active == 0) {
             session_alert_watch(cl->session, SESSION_WATCH_SHOW);
             session_alert_watch(cl->session, SESSION_WATCH_BYTARGET);
+            session_alert_watch(cl->session, SESSION_WATCH_TERMLIST);
             session_alert_watch(cl->session, SESSION_WATCH_SHOW_PREF);
         }
     }
@@ -551,6 +552,7 @@ void client_got_records(struct client *cl)
         client_unlock(cl);
         session_alert_watch(se, SESSION_WATCH_SHOW);
         session_alert_watch(se, SESSION_WATCH_BYTARGET);
+        session_alert_watch(se, SESSION_WATCH_TERMLIST);
         session_alert_watch(se, SESSION_WATCH_RECORD);
         client_lock(cl);
     }