src/extensions/default/AutoUpdate/main.js
function checkIfAnotherSessionInProgress() {
        var result = $.Deferred();
        if(updateJsonHandler) {
            var state = updateJsonHandler.state;

            updateJsonHandler.refresh()
                .done(function() {
                    var val = updateJsonHandler.get(updateProgressKey);
                    if(val !== null) {
                        result.resolve(val);
                    } else {
                        result.reject();
                    }
                })
                .fail(function() {
                    updateJsonHandler.state = state;
                    result.reject();
                });
        }
        return result.promise();
    }
function checkIfAnotherSessionInProgress() {
        var result = $.Deferred();
        if(updateJsonHandler) {
            var state = updateJsonHandler.state;

            updateJsonHandler.refresh()
                .done(function() {
                    var val = updateJsonHandler.get(updateProgressKey);
                    if(val !== null) {
                        result.resolve(val);
                    } else {
                        result.reject();
                    }
                })
                .fail(function() {
                    updateJsonHandler.state = state;
                    result.reject();
                });
        }
        return result.promise();
    }
function checkIfAnotherSessionInProgress ( ) { var result = $ . Deferred ( ) ; if ( updateJsonHandler ) { var state = updateJsonHandler . state ; updateJsonHandler . refresh ( ) . done ( function ( ) { var val = updateJsonHandler . get ( updateProgressKey ) ; if ( val !== null ) { result . resolve ( val ) ; } else { result . reject ( ) ; } } ) . fail ( function ( ) { updateJsonHandler . state = state ; result . reject ( ) ; } ) ; } return result . promise ( ) ; }
Checks if an auto update session is currently in progress
@returns {boolean} - true if an auto update session is currently in progress, false otherwise
Checks if an auto update session is currently in progress