Skip to content

Commit

Permalink
Attempted fix of #225
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffeyDev committed Nov 15, 2021
1 parent 0ea8b6e commit 48b9e79
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions atemOSC/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
}
else
{
for (Switcher *switcher in switchers)
{
if ([switcher connectAutomatically] && [switcher ipAddress])
[switcher connectBMD];
}

manager = [[OSCManager alloc] init];
[manager setDelegate:mOscReceiver];

Expand All @@ -102,6 +96,13 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
[[self->window outlineView] reloadData];
NSIndexSet* indexes = [[NSIndexSet alloc] initWithIndex:1];
[[self->window outlineView] selectRowIndexes:indexes byExtendingSelection:NO];

// Hoping that by the time the main queue is available on computer startup, the networking is up and the auto-reconnect works
for (Switcher *switcher in self->switchers)
{
if ([switcher connectAutomatically] && [switcher ipAddress])
[switcher connectBMD];
}
});
}

Expand Down

0 comments on commit 48b9e79

Please sign in to comment.