Merge "[BUGFIX][ZXW-223][AUTOSUSPEND]fix delete lock but not unlock"
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
index 2a5ff52..04b2ad0 100755
--- a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
+++ b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
@@ -344,7 +344,14 @@
     {
         return E_INPUT_ERROR;
     }
-    ret = delete_lock(fd);
+    ret = qser_wakelock_unlock(fd);
+    if(ret)
+    {
+        LYINFLOG("unlock is fail\n");
+        return ret;
+    }
+
+    ret = delete_lock(fd);    
     return ret;
 }