Abort instantly when you want a lock but a global lock exists

pull/1/head
yflory 5 years ago
parent 7254d093a3
commit 7bb59b518f

@ -596,6 +596,13 @@ define([
// Add a lock
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 || {};
// Send the lock to other users
var msg = {
@ -619,6 +626,7 @@ define([
locks: getLock()
});
} else {
if (Messages.oo_isLocked) { UI.log(Messages.oo_isLocked); }
setTimeout(function () {
onPatchSent(true);
}, 50);

Loading…
Cancel
Save