From 210567d344747e68cb97a4c23e62fdd40faaa6f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Fri, 20 Dec 2013 12:21:30 +0100 Subject: [PATCH] De-register spec app for notifications first. --- lib/motion/project/template/ios/config.rb | 4 ++-- vm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/motion/project/template/ios/config.rb b/lib/motion/project/template/ios/config.rb index 1afdaee6..d18f350f 100644 --- a/lib/motion/project/template/ios/config.rb +++ b/lib/motion/project/template/ios/config.rb @@ -456,10 +456,10 @@ EOS - (void)appLaunched:(id)notification { - // Give a bit of time for the simulator to attach... - [self performSelector:@selector(runSpecs) withObject:nil afterDelay:0.3]; // unregister observer to avoid duplicate invocation [[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil]; + // Give a bit of time for the simulator to attach... + [self performSelector:@selector(runSpecs) withObject:nil afterDelay:0.3]; } - (void)runSpecs diff --git a/vm b/vm index f85eebc4..0c2d1aa3 160000 --- a/vm +++ b/vm @@ -1 +1 @@ -Subproject commit f85eebc4f4c7f7c55bd04fbc0433930686bb4695 +Subproject commit 0c2d1aa351fdec06c6481474827e043b1d2581c2