hotfix: don't come back on previous wizard screen

The name registration can take timeout and client is never notified.
We setup a 30s timer to skip the registration. It should exit with a
success since the account is valid.

Change-Id: Ief304e8afc7d78f56a3e0806acddd8080b89a61c
diff --git a/src/RingWizardNewAccountVC.mm b/src/RingWizardNewAccountVC.mm
index 9d0929b..44bed13 100644
--- a/src/RingWizardNewAccountVC.mm
+++ b/src/RingWizardNewAccountVC.mm
@@ -277,10 +277,6 @@
 
 - (void)setCallback
 {
-    errorTimer = [NSTimer scheduledTimerWithTimeInterval:30
-                                                  target:self
-                                                selector:@selector(didCreateFailed) userInfo:nil
-                                                 repeats:NO];
     stateChanged = QObject::connect(&AccountModel::instance(),
                                     &AccountModel::accountStateChanged,
                                     [=](Account *account, const Account::RegistrationState state) {
@@ -313,6 +309,11 @@
 
 - (void) startNameRegistration:(Account*) account
 {
+    // Dismiss this screen if after 30 seconds the name is still not registered
+    errorTimer = [NSTimer scheduledTimerWithTimeInterval:30
+                                                  target:self
+                                                selector:@selector(nameRegistrationTimeout) userInfo:nil
+                                                 repeats:NO];
     registrationEnded = QObject::connect(account,
                                          &Account::nameRegistrationEnded,
                                          [=] (NameDirectory::RegisterNameStatus status,  const QString& name) {
@@ -340,9 +341,11 @@
     }
 }
 
-- (void)didCreateFailed
+- (void)nameRegistrationTimeout
 {
-    [self.delegate didCreateAccountWithSuccess:NO];
+    // This callback is used when registration takes more than 30 seconds
+    // It skips the wizard and brings the main window
+    [self.delegate didCreateAccountWithSuccess:YES];
 }
 
 - (IBAction)cancel:(id)sender