From 2398a4ee6ab6d65d80f7f66d67f6049c9bd06cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 29 Jul 2014 04:07:09 +0200 Subject: [PATCH] som small change --- .../gamecore/core/events/ShutdownEvent.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/mightypork/gamecore/core/events/ShutdownEvent.java b/src/mightypork/gamecore/core/events/ShutdownEvent.java index 46da99c..cef66a3 100644 --- a/src/mightypork/gamecore/core/events/ShutdownEvent.java +++ b/src/mightypork/gamecore/core/events/ShutdownEvent.java @@ -16,10 +16,10 @@ import mightypork.utils.logging.Log; * @author Ondřej Hruška (MightyPork) */ public class ShutdownEvent extends BusEvent { - + private final Runnable shutdownTask; - - + + /** * Make a shutdown event * @@ -29,26 +29,26 @@ public class ShutdownEvent extends BusEvent { { this.shutdownTask = doShutdown; } - - + + @Override protected void handleBy(ShutdownListener handler) { handler.onShutdown(this); } - - + + @Override public void onDispatchComplete(EventBus bus) { if (!isConsumed()) { Log.i("Shutting down..."); - + App.bus().send(new MainLoopRequest(shutdownTask, true)); - + } else { Log.i("Shutdown aborted."); } } - + }