mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-12 08:18:50 +00:00
Zero sequence number means session expired
This commit is contained in:
parent
18cabe96b6
commit
a996c374a6
1 changed files with 3 additions and 1 deletions
|
@ -1679,7 +1679,9 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
is.skipBytes(extensionHeaderPtr + 0x8);
|
||||
|
||||
final int seqNr = is.readShortReverse();
|
||||
if (seqNr <= 0)
|
||||
if (seqNr == 0)
|
||||
throw new SessionExpiredException();
|
||||
else if (seqNr < 0)
|
||||
throw new IllegalStateException("illegal sequence number: " + seqNr);
|
||||
|
||||
final String requestId = strings.read(is);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue