mirror of https://github.com/sbt/sbt.git
Merge pull request #5939 from eatkins/running-init
Initialize value before starting thread
This commit is contained in:
commit
ca8c1e704d
|
|
@ -608,9 +608,9 @@ object Terminal {
|
|||
*/
|
||||
private class ReadThread extends Thread with AutoCloseable {
|
||||
val result = new LinkedBlockingQueue[Integer]
|
||||
val running = new AtomicBoolean(true)
|
||||
setDaemon(true)
|
||||
start()
|
||||
val running = new AtomicBoolean(true)
|
||||
override def run(): Unit = while (running.get) {
|
||||
bootInputStreamHolder.get match {
|
||||
case null =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue