invoke thread change callback for available thread id 24/115424/1
authorKyeonghun Lee <kh9090.lee@samsung.com>
Thu, 16 Feb 2017 12:35:58 +0000 (21:35 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Mon, 20 Feb 2017 02:03:04 +0000 (18:03 -0800)
Change-Id: I5e12913aab7d88a6bd64385daeda0b733e3ace47
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
framework/transaction-manager/MsgTransManager.cpp

index fc5bd6b..e56cff4 100755 (executable)
@@ -1285,6 +1285,9 @@ void MsgTransactionManager::broadcastStorageChangeCB(const msg_error_t err, cons
        if (storageChangeType == MSG_STORAGE_CHANGE_INSERT || storageChangeType == MSG_STORAGE_CHANGE_UPDATE) {
                for (int i = 0; i < pMsgIdList->nCount; i++) {
                        msg_thread_id_t conv_id = MsgGetThreadId(dbHandle, pMsgIdList->msgIdList[i]);
+                       if (conv_id == 0)
+                               continue;
+
                        bool found = (std::find(cur_conv_list.begin(), cur_conv_list.end(), conv_id) != cur_conv_list.end());
 
                        if (found == false) {