Skip to content

Commit

Permalink
Merge pull request #149 from eatkins/watch-fix
Browse files Browse the repository at this point in the history
Add sleep to user input thread
  • Loading branch information
eed3si9n authored May 8, 2018
2 parents 8c4fddc + 4435f5b commit 6e6e2cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions io/src/main/scala/sbt/internal/io/EventMonitor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ private[sbt] object EventMonitor {
logger: Logger): Looper =
new Looper(s"watch-state-user-input-${userInputId.incrementAndGet}") {
override final def loop(): Unit = {
Thread.sleep(10)
if (terminationCondition) {
logger.debug("Received termination condition. Stopping watch...")
events.peek match {
Expand Down

0 comments on commit 6e6e2cb

Please sign in to comment.