Fix shell output.

This commit is contained in:
Simo Kinnunen
2014-07-25 16:54:26 +09:00
parent a332b6a5bb
commit 7286fac282
2 changed files with 4 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ module.exports = syrup.serial()
function endListener() {
push.send([
channel
, reply.okay()
, reply.okay(null)
])
resolver.resolve()
}
@@ -55,6 +55,8 @@ module.exports = syrup.serial()
stream.end()
}
stream.setEncoding('utf8')
stream.on('readable', readableListener)
stream.on('end', endListener)
stream.on('error', errorListener)