mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-23 02:14:16 +00:00
Remove any expired locks before testing if a lock is active.
This commit is contained in:
parent
88c57486d9
commit
fdfb20b14b
@ -654,6 +654,11 @@ EOSQL;
|
|||||||
function IsLocked() {
|
function IsLocked() {
|
||||||
if ( !isset($this->_locks_found) ) {
|
if ( !isset($this->_locks_found) ) {
|
||||||
$this->_locks_found = array();
|
$this->_locks_found = array();
|
||||||
|
|
||||||
|
$sql = 'DELETE FROM locks WHERE (start + timeout) < current_timestamp';
|
||||||
|
$qry = new AwlQuery($sql);
|
||||||
|
$qry->Exec('caldav',__LINE__,__FILE__);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find the locks that might apply and load them into an array
|
* Find the locks that might apply and load them into an array
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user