diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 79a95bad69729cfdcc4bfb325eea4d8a99370b8a..d7e63b83bdcc697995ceab704808394efe10f91d 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -1847,6 +1847,8 @@ public class CaptureModule implements CameraModule, PhotoController,
                     e.printStackTrace();
                 }
             }
+        }else if(!mSurfaceReady){
+            mSurfaceReadyLock.release();
         }
     }