]> git.wh0rd.org Git - tt-rss.git/commitdiff
Close lockfile handle before trying to unlink during update.
authortsimmons <toby@simmonsconsulting.com>
Thu, 5 Jan 2017 21:56:24 +0000 (15:56 -0600)
committertsimmons <toby@simmonsconsulting.com>
Thu, 5 Jan 2017 21:56:24 +0000 (15:56 -0600)
update.php

index f174361853a9106269cdb01264ad28b339d224d9..ec6875971cbb315bc3221ad08d24eaa4164aa43b 100755 (executable)
 
        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");
+       }
 ?>