Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed parallel processing in wordpress-recurse. Fixes race conditio…

…n with resources.
  • Loading branch information...
commit 74c3c39cc821a76fd7cdb4914d924f24c6950525 1 parent e1490d8
@scottgonzalez authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tasks/wordpress.js
View
4 tasks/wordpress.js
@@ -21,12 +21,12 @@ var _client,
// Async directory recursion, always walks all files before recursing
grunt.registerHelper( "wordpress-recurse", function recurse( rootdir, fn, complete ) {
var path = rootdir + "/*";
- async.mapSeries( grunt.file.expandFiles( path ), fn, function( error ) {
+ async.forEachSeries( grunt.file.expandFiles( path ), fn, function( error ) {
if ( error ) {
return complete( error );
}
- async.map( grunt.file.expandDirs( path ), function( dir, dirComplete ) {
+ async.forEachSeries( grunt.file.expandDirs( path ), function( dir, dirComplete ) {
recurse( dir, fn, dirComplete );
}, complete );
});
Please sign in to comment.
Something went wrong with that request. Please try again.