diff --git a/lib/server.js b/lib/server.js index 0396e5be..b32dbcdf 100644 --- a/lib/server.js +++ b/lib/server.js @@ -292,7 +292,9 @@ gzip.pipe(response); }; - if (isJoin) { + if (!isJoin) + Util.exec(callback); + else { names = CloudFunc.getJoinArray(path); n = names.length; @@ -314,10 +316,10 @@ funcs.push(minify.bind(null, name)); } + Util.asyncCall(funcs, readPipe); } - } else - Util.exec(callback); + } return isJoin; }