mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Do not wrap XmlPullParser exception in openStream()
This commit is contained in:
parent
7dee3b88a2
commit
b7d6edcd1e
1 changed files with 3 additions and 7 deletions
|
@ -818,16 +818,12 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
||||||
*
|
*
|
||||||
* @throws SmackException if the parser could not be reset.
|
* @throws SmackException if the parser could not be reset.
|
||||||
* @throws InterruptedException
|
* @throws InterruptedException
|
||||||
|
* @throws XmlPullParserException
|
||||||
*/
|
*/
|
||||||
void openStream() throws SmackException, InterruptedException {
|
void openStream() throws SmackException, InterruptedException, XmlPullParserException {
|
||||||
sendStreamOpen();
|
sendStreamOpen();
|
||||||
try {
|
|
||||||
packetReader.parser = PacketParserUtils.newXmppParser(reader);
|
packetReader.parser = PacketParserUtils.newXmppParser(reader);
|
||||||
}
|
}
|
||||||
catch (XmlPullParserException e) {
|
|
||||||
throw new SmackException(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected class PacketReader {
|
protected class PacketReader {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue