gamectl_unlock(..) now unsets env.variable and ignores any error during unlink
Publish PHP Package / docker (push) Successful in 6s
Details
Publish PHP Package / docker (push) Successful in 6s
Details
This commit is contained in:
parent
3dafb71a55
commit
1c82191f8c
10
lock.inc.php
10
lock.inc.php
|
@ -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))
|
||||||
unlink($lock);
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
unlink($lock);
|
||||||
|
}
|
||||||
|
catch(\Exception $e) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
putenv("GAMECTL_IN_LOCK");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue