Leave transaction channel when it's done. Could be made cleaner if more code was moved to the app side.

This commit is contained in:
Simo Kinnunen
2014-02-21 12:00:46 +09:00
parent 8769b8040c
commit 3b54213e97
2 changed files with 4 additions and 2 deletions

View File

@@ -258,7 +258,6 @@ module.exports = function(options) {
socket.emit('tx.progress', channel.toString(), message)
})
.on(wire.TransactionDoneMessage, function(channel, message) {
//leaveChannel(channel)
socket.emit('tx.done', channel.toString(), message)
})
.handler()
@@ -323,6 +322,9 @@ module.exports = function(options) {
])
})
// Transactions
.on('tx.cleanup', function(channel) {
leaveChannel(channel)
})
.on('shell.command', function(channel, responseChannel, data) {
joinChannel(responseChannel)
push.send([