Merge pull request #14 from vertecx/master

Close pointer to lock file before unlinking
This commit is contained in:
Andrew Dolgov 2011-12-07 01:45:05 -08:00
commit e6f1a1b747
1 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,10 @@
} }
db_close($link); db_close($link);
if ($lock_handle != false) {
fclose($lock_handle);
}
unlink(LOCK_DIRECTORY . "/$lock_filename"); unlink(LOCK_DIRECTORY . "/$lock_filename");
?> ?>