Commit 044317ad authored by priit's avatar priit

Utiliidi töö katkestamine

parent 41d3b482
......@@ -43,7 +43,10 @@ function ArchiveExtractor() {
logger.debug('Extracting *.zip file');
var checkForCallback = function () {
if (count == 0 && isClosed) {
logger.debug('Check for callback. count:' + count + ' isClosed: ' + isClosed);
if (count == 0 && isClosed == true) {
session.message = Session.messages.OK;
return callback(null, session);
}
......@@ -87,7 +90,7 @@ function ArchiveExtractor() {
fileName: entry.path,
contentType: mime.lookup(fullpath) // getting the original file mime type
});
count--;
count = count - 1;
checkForCallback();
});
} else {
......@@ -102,6 +105,11 @@ function ArchiveExtractor() {
});
};
this._extractGzipFile = function(file, session, callback) {
logger.debug('Extracting *.tar.gz file');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment