diff --git a/runtime/marko-runtime.js b/runtime/marko-runtime.js index 57185e74c..f64e3d81d 100644 --- a/runtime/marko-runtime.js +++ b/runtime/marko-runtime.js @@ -82,7 +82,7 @@ Template.prototype = { callback(null, out.getOutput()); }); - out.on('error', callback); + out.once('error', callback); } else if (!out || !out.isAsyncWriter) { var stream = out; // Assume the "out" is really a stream