fix: Move CoreMessenger write calls off AWT thread to prevent UI freeze (related to #5819)

This commit is contained in:
Jakub Blach 2025-07-02 19:42:18 +02:00
parent ad12f6fd87
commit 1925b2f97c

View file

@ -43,7 +43,9 @@ class CoreMessenger(
val message =
gson.toJson(mapOf("messageId" to id, "messageType" to messageType, "data" to data))
responseListeners[id] = onResponse
write(message)
coroutineScope.launch(Dispatchers.IO) {
write(message)
}
}
private fun handleMessage(json: String) {