Use wireutil.reply() where possible.

This commit is contained in:
Simo Kinnunen
2014-04-11 14:54:19 +09:00
parent 90b39306a8
commit 7f74ecd7af
8 changed files with 32 additions and 128 deletions

View File

@@ -337,14 +337,11 @@ module.exports = syrup.serial()
.then(function() {
router
.on(wire.PhysicalIdentifyMessage, function(channel) {
var reply = wireutil.reply(options.serial)
identity()
push.send([
channel
, wireutil.envelope(new wire.TransactionDoneMessage(
options.serial
, 0
, true
))
, reply.okay()
])
})
.on(wire.KeyDownMessage, function(channel, message) {