mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-24 09:17:06 +01:00
Check & clear server queue & return if we have this
If we have the exact same item URL, there is a save jamming situation, so clear the server message and item from the queue then return
This commit is contained in:
@@ -2551,6 +2551,14 @@ var ICEcoder = {
|
||||
serverQueue: function(action,item,file,changes) {
|
||||
var cM, nextSaveID, txtArea, topSaveID, element, xhr, statusObj, timeStart;
|
||||
|
||||
// If we have this exact item URL, it's almost certain we've got a repetitive save
|
||||
// situation and so clear the message and server queue item to avoid save jamming
|
||||
if (ICEcoder.serverQueueItems.indexOf(item) !== -1) {
|
||||
top.ICEcoder.serverMessage();
|
||||
top.ICEcoder.serverQueue("del",0);
|
||||
return;
|
||||
}
|
||||
|
||||
cM = ICEcoder.getcMInstance();
|
||||
// Firstly, work out how many saves we have to carry out
|
||||
nextSaveID=0;
|
||||
|
||||
Reference in New Issue
Block a user