Abort instantly when you want a lock but a global lock exists
This commit is contained in:
parent
7254d093a3
commit
7bb59b518f
@ -596,6 +596,13 @@ define([
|
|||||||
|
|
||||||
// Add a lock
|
// Add a lock
|
||||||
var handleLock = function (obj, send) {
|
var handleLock = function (obj, send) {
|
||||||
|
if (content.saveLock) {
|
||||||
|
if (Messages.oo_isLocked) { UI.log(Messages.oo_isLocked); }
|
||||||
|
setTimeout(function () {
|
||||||
|
handleLock(obj, send);
|
||||||
|
}, 50);
|
||||||
|
return;
|
||||||
|
}
|
||||||
content.locks = content.locks || {};
|
content.locks = content.locks || {};
|
||||||
// Send the lock to other users
|
// Send the lock to other users
|
||||||
var msg = {
|
var msg = {
|
||||||
@ -619,6 +626,7 @@ define([
|
|||||||
locks: getLock()
|
locks: getLock()
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
if (Messages.oo_isLocked) { UI.log(Messages.oo_isLocked); }
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
onPatchSent(true);
|
onPatchSent(true);
|
||||||
}, 50);
|
}, 50);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user