Ver Fonte

Close lockfile handle before trying to unlink during update.

tsimmons há 7 anos atrás
pai
commit
8231c039ed
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      update.php

+ 3 - 1
update.php

@@ -404,6 +404,8 @@
 
 	PluginHost::getInstance()->run_commands($options);
 
-	if (file_exists(LOCK_DIRECTORY . "/$lock_filename"))
+	if (file_exists(LOCK_DIRECTORY . "/$lock_filename")) {
+		fclose($lock_handle);
 		unlink(LOCK_DIRECTORY . "/$lock_filename");
+	}
 ?>