[epsonprojector] Always set ready=true on disconnect and improve documentation (#10079)

* Always set ready on disconnect and improve documentation
* improve documentation

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
This commit is contained in:
mlobstein
2021-02-06 20:32:34 -06:00
committed by GitHub
parent fa307e203e
commit 10b9b562ad
2 changed files with 4 additions and 4 deletions

View File

@@ -206,11 +206,11 @@ public class EpsonProjectorDevice {
public void disconnect() throws EpsonProjectorException {
connection.disconnect();
connected = false;
ready = true;
ScheduledFuture<?> timeoutJob = this.timeoutJob;
if (timeoutJob != null) {
timeoutJob.cancel(true);
this.timeoutJob = null;
ready = true;
}
}