Merge pull request #4150 from eatkins/watch-fix

Revert back to non-blocking watch termination condition
This commit is contained in:
eugene yokota 2018-05-08 17:50:37 -04:00 committed by GitHub
commit 685b8fe254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ object Watched {
def executeContinuously(watched: Watched, s: State, next: String, repeat: String): State = {
@tailrec def shouldTerminate: Boolean =
watched.terminateWatch(System.in.read()) || shouldTerminate
(System.in.available > 0) && (watched.terminateWatch(System.in.read()) || shouldTerminate)
val log = s.log
val logger = new EventMonitor.Logger {
override def debug(msg: => Any): Unit = log.debug(msg.toString)