Skip to content

Commit 1788f06

Browse files
authored
use compareTo when comparing Jids (#339)
the previous code was causing an issue where we'd compare the same JID content (but different references) and Jicofo thought they weren't the same.
1 parent f3bbfbb commit 1788f06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/jitsi/jicofo/recording/jibri/JibriSession.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,10 +490,10 @@ private void handleJibriStatusUpdate(
490490
jibriStatus = newStatus;
491491
logger.info("Got Jibri status update: Jibri " + jibriJid + " has status " + newStatus +
492492
" and failure reason " + failureReason);
493-
if (jibriJid != currentJibriJid)
493+
if (jibriJid.compareTo(currentJibriJid) != 0)
494494
{
495495
logger.info("This status update is from " + jibriJid +
496-
"but the current Jibri is " + currentJibriJid + ", ignoring");
496+
" but the current Jibri is " + currentJibriJid + ", ignoring");
497497
return;
498498
}
499499
// First: if we're no longer pending (regardless of the Jibri's new state), make sure we stop

0 commit comments

Comments
 (0)