mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 18:48:00 +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);
|
||||
}
|
||||
catch (Exception e) {
|
||||
// Always re-throw runtime exceptions, they are fatal
|
||||
if (e instanceof RuntimeException) {
|
||||
throw (RuntimeException) e;
|
||||
}
|
||||
CharSequence content = PacketParserUtils.parseContentDepth(parser,
|
||||
parserDepth);
|
||||
UnparsablePacket message = new UnparsablePacket(content, e);
|
||||
|
|
Loading…
Reference in a new issue