mirror of https://github.com/sbt/sbt.git
Merge pull request #6113 from eatkins/thin-client-shutdown
Fix shutdown for thin client shell
This commit is contained in:
commit
9abcbfa31b
|
|
@ -160,7 +160,9 @@ private[sbt] final class CommandExchange {
|
|||
channelBufferLock.synchronized {
|
||||
Util.ignoreResult(channelBuffer -= c)
|
||||
}
|
||||
commandQueue.removeIf(_.source.map(_.channelName) == Some(c.name))
|
||||
commandQueue.removeIf { e =>
|
||||
e.source.map(_.channelName) == Some(c.name) && e.commandLine != Shutdown
|
||||
}
|
||||
currentExec.filter(_.source.map(_.channelName) == Some(c.name)).foreach { e =>
|
||||
Util.ignoreResult(NetworkChannel.cancel(e.execId, e.execId.getOrElse("0")))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue