in the event of a destroyed or stopped object/updateStore,
we do not want to execute queued requests, thus we
need to unqueue them
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
queue.push(storeid);
}
start_update();
+ },
+ unqueue: function(store) {
+ var storeid = store.storeid;
+ if (!storeid) {
+ throw "unabel to unqueue store without storeid";
+ }
+ if (queue_idx[storeid]) {
+ Ext.Array.remove(queue,storeid);
+ queue_idx[storeid] = null;
+ }
}
});
}
},
stopUpdate: function() {
load_task.cancel();
+ PVE.data.UpdateQueue.unqueue(me);
}
});
me.on('destroy', function() {
load_task.cancel();
+ PVE.data.UpdateQueue.unqueue(me);
});
}
});