1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +01:00

Do not wrap XmlPullParser exception in openStream()

This commit is contained in:
Florian Schmaus 2019-02-10 19:03:07 +01:00
parent 7dee3b88a2
commit b7d6edcd1e

View file

@ -818,15 +818,11 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
*
* @throws SmackException if the parser could not be reset.
* @throws InterruptedException
* @throws XmlPullParserException
*/
void openStream() throws SmackException, InterruptedException {
void openStream() throws SmackException, InterruptedException, XmlPullParserException {
sendStreamOpen();
try {
packetReader.parser = PacketParserUtils.newXmppParser(reader);
}
catch (XmlPullParserException e) {
throw new SmackException(e);
}
packetReader.parser = PacketParserUtils.newXmppParser(reader);
}
protected class PacketReader {