mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 06:08:52 +00:00
VRS: don't query for more trip results if first query returns empty
This commit is contained in:
parent
93251e0d93
commit
dabbebe002
1 changed files with 2 additions and 2 deletions
|
@ -101,12 +101,12 @@ public class VrsProvider extends AbstractNetworkProvider {
|
|||
|
||||
@Override
|
||||
public boolean canQueryLater() {
|
||||
return this.canQueryLater;
|
||||
return this.canQueryLater && this.lastDeparture != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canQueryEarlier() {
|
||||
return this.canQueryEarlier;
|
||||
return this.canQueryEarlier && this.firstArrival != null;
|
||||
}
|
||||
|
||||
public void departure(Date departure) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue