Commit 3f4bd1f1 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Change statusChannelList to CopyOnWriteArrayList in order to better keep track...

Change statusChannelList to CopyOnWriteArrayList in order to better keep track of concurrent modifications
parent a63baa53
......@@ -9,10 +9,11 @@ import kotlinx.coroutines.experimental.Job
import kotlinx.coroutines.experimental.channels.Channel
import kotlinx.coroutines.experimental.launch
import timber.log.Timber
import java.util.concurrent.CopyOnWriteArrayList
class ConnectionManager(internal val client: RocketChatClient) {
private val statusChannelList = ArrayList<Channel<State>>()
private val statusChannelList = CopyOnWriteArrayList<Channel<State>>()
private val statusChannel = Channel<State>()
private var connectJob: Job? = null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment