Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / utility / utility_thread_impl.cc
index 6151de6..6fa43c8 100644 (file)
@@ -118,7 +118,8 @@ void UtilityThreadImpl::OnBatchModeStarted() {
 }
 
 void UtilityThreadImpl::OnBatchModeFinished() {
-  ChildProcess::current()->ReleaseProcess();
+  batch_mode_ = false;
+  ReleaseProcessIfNeeded();
 }
 
 #if defined(OS_POSIX)