mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 17:39:49 +00:00
EFA: Fix server detected as down sometimes when querying for suggested locations.
This commit is contained in:
parent
f4caea8dfd
commit
cb61798228
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
final JSONObject message = messages.optJSONObject(i);
|
||||
final String messageName = message.getString("name");
|
||||
final String messageValue = Strings.emptyToNull(message.getString("value"));
|
||||
if ("code".equals(messageName) && !"-8011".equals(messageValue))
|
||||
if ("code".equals(messageName) && !"-8010".equals(messageValue) && !"-8011".equals(messageValue))
|
||||
return new SuggestLocationsResult(header, SuggestLocationsResult.Status.SERVICE_DOWN);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue