-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor colibri handling in JitsiMeetConferenceImpl. #843
Refactor colibri handling in JitsiMeetConferenceImpl. #843
Conversation
Codecov Report
@@ Coverage Diff @@
## master #843 +/- ##
============================================
- Coverage 45.82% 45.45% -0.38%
- Complexity 785 788 +3
============================================
Files 112 115 +3
Lines 6965 7078 +113
Branches 968 970 +2
============================================
+ Hits 3192 3217 +25
- Misses 3346 3445 +99
+ Partials 427 416 -11
Continue to review full report at Codecov.
|
src/main/java/org/jitsi/jicofo/conference/JitsiMeetConferenceImpl.java
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/jitsi/jicofo/conference/ColibriSessionManager.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/jitsi/jicofo/conference/ColibriSessionManager.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/jitsi/jicofo/conference/ColibriSessionManager.kt
Outdated
Show resolved
Hide resolved
/** | ||
* Get a stream of those bridges which are operational. | ||
*/ | ||
private fun operationalBridges(): List<BridgeSession> = synchronized(syncRoot) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is always called from inside synchronized(syncRoot)
so you shouldn't need to synchronize again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather aquire the lock twice, the performance impact should be minimal.
src/main/kotlin/org/jitsi/jicofo/conference/ColibriSessionManager.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/jitsi/jicofo/conference/ColibriSessionManager.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/jitsi/jicofo/conference/colibri/ColibriSessionManager.kt
Show resolved
Hide resolved
…colibri request success/failure.
This state is already updated via BridgeSession.colibriConference.muteParticipant
The goal is to abstract away all the colibri-related logic in JitsiMeetConferenceImpl, so that it can later be replaced with a colibri2 implementation.