mirror of https://github.com/sbt/sbt.git
Merge pull request #5760 from eatkins/thin-client-exit
Handle interrupted exceptions in thin client reader
This commit is contained in:
commit
094f6078b2
|
|
@ -905,7 +905,7 @@ class NetworkClient(
|
|||
}
|
||||
}
|
||||
try Terminal.console.withRawInput(read())
|
||||
catch { case NonFatal(_) => stopped.set(true) }
|
||||
catch { case _: InterruptedException | NonFatal(_) => stopped.set(true) }
|
||||
}
|
||||
|
||||
def drain(): Unit = inLock.synchronized {
|
||||
|
|
|
|||
Loading…
Reference in New Issue