Specify the tty app to stop.

This commit is contained in:
Pagan Gazzard 2014-12-23 13:59:00 +00:00 committed by Pablo Carranza Vélez
parent e25563f85c
commit 6aa6ff5773

View File

@ -44,7 +44,7 @@ exports.kill = kill = (app) ->
updateDeviceInfo(status: 'Stopping')
container = docker.getContainer(app.containerId)
console.log('Stopping and deleting container:', container)
tty.stop()
tty.stop(app.id)
.catch (err) ->
console.error('Error stopping tty', err)
return # Even if stopping the tty fails we want to finish stopping the container