{
if (!note || [[[note userInfo] objectForKey:@"NSApplicationName"] isEqualToString:[currentRemote playerFullName]]) {
ITDebugLog(@"Remote application launched.");
+ playerRunningState = ITMTRemotePlayerRunning;
[currentRemote begin];
[self setLatestSongIdentifier:@""];
[self timerUpdate];
repeats:YES] retain];
//[NSThread detachNewThreadSelector:@selector(startTimerInNewThread) toTarget:self withObject:nil];
[self setupHotKeys];
- playerRunningState = ITMTRemotePlayerRunning;
}
}
[refreshTimer invalidate];
[refreshTimer release];
refreshTimer = nil;
- [registerTimer invalidate];
- [registerTimer release];
- registerTimer = nil;
[self clearHotKeys];
playerRunningState = ITMTRemotePlayerNotRunning;
}