mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 11:53:30 +02:00
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:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user