Skip to content

Commit

Permalink
Fixed moronic mistake when looking for registered server
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus S. Zarra committed Aug 6, 2010
1 parent 4a74cf6 commit 3514d6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DeviceCode/ZSyncTouchHandler.m
Expand Up @@ -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
Expand Down

0 comments on commit 3514d6c

Please sign in to comment.