ソースを参照

modules_k/presence: Added missing use_table() call

Peter Dunkley 13 年 前
コミット
0de5e17770
1 ファイル変更8 行追加0 行削除
  1. 8 0
      modules_k/presence/notify.c

+ 8 - 0
modules_k/presence/notify.c

@@ -2777,6 +2777,14 @@ int process_dialogs(int round, int presence_winfo)
 		result_cols[updated_winfo_col = n_result_cols++] = &str_updated_winfo_col;
 		result_cols[expires_col = n_result_cols++] = &str_expires_col;
 
+		/* Need to redo this here as we might have switched to the
+		   presentity table during a previous iteration. */
+		if (pa_dbf.use_table(pa_db, &active_watchers_table) < 0)
+		{
+			LM_ERR("use table failed\n");
+			goto error;
+		}
+
 		if (pa_dbf.start_transaction)
 		{
 			if (pa_dbf.start_transaction(pa_db) < 0)