catch securityException when parsing rtp description
This commit is contained in:
parent
fa45422fa8
commit
9fa9ca9cbc
|
@ -270,7 +270,7 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web
|
||||||
contentMap = RtpContentMap.of(jinglePacket);
|
contentMap = RtpContentMap.of(jinglePacket);
|
||||||
contentMap.requireContentDescriptions();
|
contentMap.requireContentDescriptions();
|
||||||
contentMap.requireDTLSFingerprint();
|
contentMap.requireDTLSFingerprint();
|
||||||
} catch (final IllegalArgumentException | IllegalStateException | NullPointerException e) {
|
} catch (final RuntimeException e) {
|
||||||
respondOk(jinglePacket);
|
respondOk(jinglePacket);
|
||||||
sendSessionTerminate(Reason.of(e), e.getMessage());
|
sendSessionTerminate(Reason.of(e), e.getMessage());
|
||||||
Log.d(Config.LOGTAG, id.account.getJid().asBareJid() + ": improperly formatted contents", e);
|
Log.d(Config.LOGTAG, id.account.getJid().asBareJid() + ": improperly formatted contents", e);
|
||||||
|
@ -321,7 +321,7 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web
|
||||||
contentMap = RtpContentMap.of(jinglePacket);
|
contentMap = RtpContentMap.of(jinglePacket);
|
||||||
contentMap.requireContentDescriptions();
|
contentMap.requireContentDescriptions();
|
||||||
contentMap.requireDTLSFingerprint();
|
contentMap.requireDTLSFingerprint();
|
||||||
} catch (final IllegalArgumentException | IllegalStateException | NullPointerException e) {
|
} catch (final RuntimeException e) {
|
||||||
respondOk(jinglePacket);
|
respondOk(jinglePacket);
|
||||||
Log.d(Config.LOGTAG, id.account.getJid().asBareJid() + ": improperly formatted contents in session-accept", e);
|
Log.d(Config.LOGTAG, id.account.getJid().asBareJid() + ": improperly formatted contents in session-accept", e);
|
||||||
webRTCWrapper.close();
|
webRTCWrapper.close();
|
||||||
|
|
Loading…
Reference in New Issue