# HG changeset patch # User Vladimir Vukicevic # Date 1199249692 28800 # Node ID ca2a2ea467db88912959a22565598b8d1e029061 # Parent b4a7207bf0af37c3018af547343f19624d8c8de3 Don't join background thread on quit, for faster quits. Notify the background thread and then immediately close the main screen on quit. diff -r b4a7207bf0af37c3018af547343f19624d8c8de3 -r ca2a2ea467db88912959a22565598b8d1e029061 src/org/mrrupert/eveberry/EveBerry.java --- a/src/org/mrrupert/eveberry/EveBerry.java Tue Jan 01 20:53:55 2008 -0800 +++ b/src/org/mrrupert/eveberry/EveBerry.java Tue Jan 01 20:54:52 2008 -0800 @@ -223,7 +223,7 @@ public boolean onClose() { System.out.println("EveBerry: onClose"); - EveBerryBackground.StopBackgroundRunnable(); + EveBerryBackground.EndBackgroundRunnable(); System.exit(0); return true; diff -r b4a7207bf0af37c3018af547343f19624d8c8de3 -r ca2a2ea467db88912959a22565598b8d1e029061 src/org/mrrupert/eveberry/EveBerryBackground.java --- a/src/org/mrrupert/eveberry/EveBerryBackground.java Tue Jan 01 20:53:55 2008 -0800 +++ b/src/org/mrrupert/eveberry/EveBerryBackground.java Tue Jan 01 20:54:52 2008 -0800 @@ -111,10 +111,13 @@ return sRunnable; } - public static void endBackgroundRunnable() { + public static void EndBackgroundRunnable() { sFinished = true; - if (sRunnable != null) - sRunnable.notify(); + if (sRunnable != null) { + synchronized(sRunnable) { + sRunnable.notify(); + } + } } public synchronized void requestCharacterUpdate(EveCharacterInfo eci) {