gamectl_unlock(..) now unsets env.variable and ignores any error during unlink
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
Pavel Shevaev 2025-05-06 16:07:56 +03:00
parent 3dafb71a55
commit 1c82191f8c
1 changed files with 9 additions and 1 deletions

View File

@ -64,5 +64,13 @@ function gamectl_unlock()
$lock = $GAME_ROOT . '/gamectl.lock'; $lock = $GAME_ROOT . '/gamectl.lock';
if(file_exists($lock)) if(file_exists($lock))
{
try
{
unlink($lock); unlink($lock);
} }
catch(\Exception $e) {}
}
putenv("GAMECTL_IN_LOCK");
}