This commit is contained in:
@@ -16,6 +16,7 @@ public abstract class EventListener extends Listener implements Runnable {
|
||||
}
|
||||
|
||||
public final void run() {
|
||||
System.out.println(this);
|
||||
while (run) {
|
||||
if (eventQueue.isEmpty()) {
|
||||
sleep();
|
||||
|
||||
@@ -39,7 +39,9 @@ public class EventManager {
|
||||
self.add(task);
|
||||
break;
|
||||
case APPLICATION:
|
||||
applicationCycle.current().add(task);
|
||||
if (applicationCycle.size() > 0) {
|
||||
applicationCycle.current().add(task);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
for (EventListener eventListener : taskListenerList) {
|
||||
|
||||
Reference in New Issue
Block a user