Don't navigate to a host that is known to be offline

This commit is contained in:
Cameron Gutman
2019-11-03 15:13:44 -08:00
parent 3c9314dff3
commit 95ce78bb00
@@ -833,7 +833,7 @@ static NSMutableSet* hostList;
delegate.shortcutCompletionHandler = nil; delegate.shortcutCompletionHandler = nil;
} }
if (matchingHost != nil && _selectedHost != matchingHost) { if (matchingHost != nil && _selectedHost != matchingHost && matchingHost.state != StateOffline) {
// Navigate to the host page // Navigate to the host page
[self hostClicked:matchingHost view:nil]; [self hostClicked:matchingHost view:nil];
} }