mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-15 03:52:05 +01:00
Don't rethrow RuntimeExceptions in parseAndProcessStanza
This commit is contained in:
parent
0897b76718
commit
72f41e20b1
1 changed files with 0 additions and 4 deletions
|
@ -957,10 +957,6 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
||||||
stanza = PacketParserUtils.parseStanza(parser);
|
stanza = PacketParserUtils.parseStanza(parser);
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
// Always re-throw runtime exceptions, they are fatal
|
|
||||||
if (e instanceof RuntimeException) {
|
|
||||||
throw (RuntimeException) e;
|
|
||||||
}
|
|
||||||
CharSequence content = PacketParserUtils.parseContentDepth(parser,
|
CharSequence content = PacketParserUtils.parseContentDepth(parser,
|
||||||
parserDepth);
|
parserDepth);
|
||||||
UnparsablePacket message = new UnparsablePacket(content, e);
|
UnparsablePacket message = new UnparsablePacket(content, e);
|
||||||
|
|
Loading…
Reference in a new issue