Skip to content

Commit

Permalink
only add should_retry attr when it's non-null (jitsi#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaldino authored Jan 22, 2020
1 parent 725dcef commit 009420d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/jitsi/xmpp/extensions/jibri/JibriIq.java
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,10 @@ protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildE
xml.optAttribute(SIP_ADDRESS_ATTR_NAME, sipAddress);
xml.optAttribute(SESSION_ID_ATTR_NAME, sessionId);
xml.optAttribute(FAILURE_REASON_ATTR_NAME, failureReason);
xml.attribute(SHOULD_RETRY_ATTR_NAME, shouldRetry);
if (shouldRetry != null)
{
xml.attribute(SHOULD_RETRY_ATTR_NAME, shouldRetry);
}
xml.optAttribute(APP_DATA_ATTR_NAME, appData);

xml.setEmptyElement();
Expand Down

0 comments on commit 009420d

Please # to comment.