From f96a069df0b0d54c80cb5467437df40e0a9ad0fe Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Wed, 16 Mar 2016 03:41:27 -0500 Subject: [PATCH] Fix status resetting every time through the repl. --- .../com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy b/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy index aeaeb3e..23d781d 100644 --- a/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy +++ b/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy @@ -285,7 +285,10 @@ Configuration: while(this.running) { - if (new Date() > dismissMsgDate) resetStatus() + if (new Date() > dismissMsgDate) { + resetStatus() + dismissDate = new Date(Long.MAX_VALUE) } + if (consoleReadBuffer.size() > 0) { line = consoleReadBuffer.remove(0) try { processInput(line) }