fixed svace critial 31/151431/1
authorIckhee Woo <ickhee.woo@samsung.com>
Thu, 21 Sep 2017 01:46:06 +0000 (10:46 +0900)
committerIckhee Woo <ickhee.woo@samsung.com>
Thu, 21 Sep 2017 01:46:06 +0000 (10:46 +0900)
Change-Id: Icfbd43192b0a0167bda516ad6da25eda1751bd8a
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
packaging/sync-manager.spec
src/sync-service/SyncManager_SyncJobDispatcher.cpp

index a2be49af4edb83e8ec93924bd2e20ef704101903..59c76809166aadd71babd845031969ef74ba1bac 100644 (file)
@@ -2,7 +2,7 @@
 %global __provides_exclude_from ^.*\\.extension-calendar
 
 Name:      sync-service
-Version:   0.3.33
+Version:   0.3.34
 Release:   1
 License:   Apache-2.0
 Summary:   Sync manager daemon
index adac34614e01a0d1b9e73d2ad1fbeeabaf70217e..0d4111163fb3655d18fa0e3ccf4c4deb5747f46c 100644 (file)
@@ -252,8 +252,6 @@ SyncJobDispatcher::TryStartingNextJobLocked() {
                        LOG_LOGD("syncJobToRun is null");
        }
 
-       pthread_mutex_unlock(&(SyncManager::GetInstance()->__syncJobQueueMutex));
-
        if (syncJobToRun != NULL) {
                int ret = DispatchSyncJob(syncJobToRun);
                if (ret != SYNC_ERROR_NONE) {
@@ -261,6 +259,8 @@ SyncJobDispatcher::TryStartingNextJobLocked() {
                        SyncManager::GetInstance()->ScheduleSyncJob(syncJobToRun, false);
                }
        }
+
+       pthread_mutex_unlock(&(SyncManager::GetInstance()->__syncJobQueueMutex));
 }
 /* LCOV_EXCL_STOP */