We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1f8354 commit 96e6df4Copy full SHA for 96e6df4
1 file changed
SimonRemote/ApplicationDelegate.m
@@ -8,7 +8,6 @@ @implementation ApplicationDelegate {
8
Reachability* reach;
9
NSTimer *tickTimer;
10
NSString *channel;
11
- int numConnections;
12
}
13
14
@synthesize panelController = _panelController;
@@ -59,6 +58,10 @@ -(void)reachabilityChanged:(NSNotification*)note
59
58
60
- (void)pushNewInfo:(NSNotification *)notification
61
{
+ if (_numberActiveControllers == 0) {
62
+ return;
63
+ }
64
+
65
if ([[notification name] isEqualToString:@"com.apple.iTunes.playerInfo"]) {
66
[[self messenger] sendNewInfoForApp:@"iTunes"];
67
} else if ([[notification name] isEqualToString:@"com.spotify.client.PlaybackStateChanged"]) {
0 commit comments