Skip to content

Commit 5757002

Browse files
author
Amoki
committed
fix cb non called if no task_path
1 parent 9c54b7d commit 5757002

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ And then:
4242
var anyfetchHydrater = require('anyfetch-hydrater');
4343

4444
var config = {
45-
'hydrater_function': 'path/to/my/function.js'
45+
'hydrater_function': 'absolute/path/to/my/function.js'
4646
};
4747

4848
var hydrationServer = anyfetchHydrater.createServer(config);

lib/helpers/child-process.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* the master process can simply kill the child and resume its normal operation.
88
* Without the sub-process isolation, we get stuck quite fast and get leaks everywhere.
99
*/
10-
10+
1111
var crypto = require('crypto');
1212
var async = require("async");
1313
var fs = require('fs');
@@ -60,6 +60,9 @@ process.on('message', function(task) {
6060
if(task.file_path) {
6161
fs.unlink(path, rarity.carry([changes], cb));
6262
}
63+
else {
64+
cb(null, changes);
65+
}
6366
}
6467
],
6568
function(err, changes) {

0 commit comments

Comments
 (0)