project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/netplay/NetplayService.java
changeset 7346 b0f67c5b4215
parent 7332 3f2e130f9715
child 7349 12fdfd2038d4
--- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/netplay/NetplayService.java	Thu Jul 19 22:53:39 2012 +0200
+++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/netplay/NetplayService.java	Thu Jul 19 22:55:36 2012 +0200
@@ -27,7 +27,7 @@
 			netconn = new Netconn(getApplicationContext(), "AndroidTester");
 		} catch (IOException e) {
 			// TODO better handling
-			throw new RuntimeException("Unable to start frontlib");
+			throw new RuntimeException("Unable to start frontlib", e);
 		}
     	timer = new CountDownTimer(Long.MAX_VALUE, 50) {
 			@Override
@@ -46,6 +46,7 @@
 	
 	@Override
 	public void onDestroy() {
+		timer.cancel();
 		netconn.disconnect();
 		Flib.INSTANCE.flib_quit();
 	}