Permalink
Browse files

Fixed moronic mistake when looking for registered server

  • Loading branch information...
1 parent 4a74cf6 commit 3514d6c9f7d156310e6009deec0121be94d2ed61 Marcus S. Zarra committed Aug 6, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 DeviceCode/ZSyncTouchHandler.m
View
5 DeviceCode/ZSyncTouchHandler.m
@@ -288,8 +288,9 @@ - (void)services:(NSTimer*)timer
NSString *serverName = [service name];
NSArray *components = [serverName componentsSeparatedByString:zsServerNameSeperator];
ZAssert([components count] == 2,@"Wrong number of components: %i\n%@", [components count], serverName);
- NSString *serverUUID = [components objectAtIndex:1];
- if (![serverUUID isEqualToString:serverUUID]) continue;
+ NSString *incomingServerUUID = [components objectAtIndex:1];
+ if (!incomingServerUUID) continue;
+ if (![incomingServerUUID isEqualToString:serverUUID]) continue;
DLog(@"our server found");
//Found our server, start the sync

0 comments on commit 3514d6c

Please sign in to comment.