mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 10:03:56 +02:00
Merge pull request #5939 from eatkins/running-init
Initialize value before starting thread
This commit is contained in:
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user