mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-12 15:32:06 +01:00
Clean close() method
This commit is contained in:
parent
0753f4d38a
commit
7b9db97212
1 changed files with 3 additions and 9 deletions
|
@ -348,17 +348,11 @@ public class OpenPgpMessageInputStream extends InputStream {
|
||||||
|
|
||||||
if (in != null) {
|
if (in != null) {
|
||||||
in.close();
|
in.close();
|
||||||
in = null; // TODO: Collect result of in before nulling
|
in = null;
|
||||||
if (automaton.getState() != PDA.State.LiteralMessage) {
|
|
||||||
automaton.next(InputAlphabet.EndOfSequence);
|
|
||||||
automaton.assertValid();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
automaton.next(InputAlphabet.EndOfSequence);
|
|
||||||
automaton.assertValid();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
super.close();
|
automaton.next(InputAlphabet.EndOfSequence);
|
||||||
|
automaton.assertValid();
|
||||||
closed = true;
|
closed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue