public void run try while toRun if this onAir true time this countInte

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
public void run() {
try {
while (toRun) {
if (this.onAir == true) {
time += this.countInterval;
countListener.count(time);
} else {
synchronized (this) {
this.wait();
}
}
Thread.sleep(countInterval);
}
} catch (InterruptedException ie) {
stopCount();
}
}