invoke thread change callback for available thread id 58/115158/2
authorKyeonghun Lee <kh9090.lee@samsung.com>
Thu, 16 Feb 2017 12:35:58 +0000 (21:35 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Thu, 16 Feb 2017 12:40:22 +0000 (21:40 +0900)
Change-Id: I5e12913aab7d88a6bd64385daeda0b733e3ace47
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
framework/transaction-manager/MsgTransManager.cpp

index b965204..d5e7824 100755 (executable)
@@ -1284,6 +1284,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) {