1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

Allow all pending transaction results to be cancelled.

This commit is contained in:
Simo Kinnunen 2014-04-15 17:33:22 +09:00
parent f46540e51e
commit b0400130ff
2 changed files with 32 additions and 7 deletions

View file

@ -478,13 +478,12 @@ module.exports = function(options) {
}
})
.catch(function(err) {
var reply = wireutil.reply('storage')
log.error('Storage upload had an error', err.stack)
leaveChannel(responseChannel)
push.send([
channel
, reply.fail('fail')
])
socket.emit('tx.cancel', responseChannel, {
success: false
, data: 'fail_upload'
})
})
})
.on('forward.test', function(channel, responseChannel, data) {