Additional cancel operation check on client 75/76475/1
authorsangwan.kwon <sangwan.kwon@samsung.com>
Fri, 24 Jun 2016 05:18:59 +0000 (14:18 +0900)
committersangwan.kwon <sangwan.kwon@samsung.com>
Fri, 24 Jun 2016 05:18:59 +0000 (14:18 +0900)
Change-Id: Ia0525972e026ad0f0dc08a17872542982a43592d
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
src/framework/service/cs-logic.cpp

index 032e45b..57b9a0b 100644 (file)
@@ -505,6 +505,8 @@ RawBuffer CsLogic::getScannableFiles(const std::string &dir, const std::function
        if (lastScanTime != -1) {
                // for case: scan history exist and not modified.
                for (auto &row : this->m_db->getDetectedAllByNameOnDir(File::getPkgPath(dir))) {
+                       isCancelled();
+
                        try {
                                auto fileptr = File::create(row->targetName);