Browse files

Merge branch 'master' of git://github.com/mzarra/ZSync

  • Loading branch information...
2 parents cfbcdde + 3514d6c commit d07d3180d23139ff4539ab5678e443d3134fee8c Michael Fey 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 d07d318

Please sign in to comment.