Use Set instead of List
This commit is contained in:
parent
5f60d7fd3b
commit
6569ee5d10
|
@ -22,7 +22,7 @@ import javax.inject.Inject
|
|||
|
||||
internal class SessionListeners @Inject constructor() {
|
||||
|
||||
private val listeners = ArrayList<Session.Listener>()
|
||||
private val listeners = mutableSetOf<Session.Listener>()
|
||||
|
||||
fun addListener(listener: Session.Listener) {
|
||||
synchronized(listeners) {
|
||||
|
|
Loading…
Reference in New Issue