Skip to content

Commit

Permalink
fix: crash loop when logout/login while there is an MLS call ongoing
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadJaara committed Apr 29, 2024
1 parent 18742df commit 7e452d5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

package com.wire.kalium.logic.data.call

import co.touchlab.stately.collections.ConcurrentMutableMap
import com.benasher44.uuid.uuid4
import com.wire.kalium.logger.KaliumLogLevel
import com.wire.kalium.logger.obfuscateDomain
Expand Down Expand Up @@ -155,8 +156,8 @@ internal class CallDataSource(

private val job = SupervisorJob() // TODO(calling): clear job method
private val scope = CoroutineScope(job + kaliumDispatchers.io)
private val callJobs = mutableMapOf<ConversationId, Job>()
private val staleParticipantJobs = mutableMapOf<QualifiedClientID, Job>()
private val callJobs = ConcurrentMutableMap<ConversationId, Job>()
private val staleParticipantJobs = ConcurrentMutableMap<QualifiedClientID, Job>()

override suspend fun getCallConfigResponse(limit: Int?): Either<CoreFailure, String> = wrapApiRequest {
callApi.getCallConfig(limit = limit)
Expand Down

0 comments on commit 7e452d5

Please sign in to comment.