Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-signal-client-volatile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"client-sdk-android": patch
---

Fix thread visibility issues in SignalClient that could cause messages to be silently dropped.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,14 @@ constructor(
private val ioDispatcher: CoroutineDispatcher,
private val networkInfo: NetworkInfo,
) : WebSocketListener() {
@Volatile
var isConnected = false
private set

@Volatile
private var currentWs: WebSocket? = null

@Volatile
private var isReconnecting: Boolean = false
var listener: Listener? = null
internal var serverVersion: Semver? = null
Expand Down