mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-09-02 15:46:45 +00:00
Fixed send on wrong thread.
This commit is contained in:
parent
d44a71f3be
commit
dabcfd965f
1 changed files with 1 additions and 1 deletions
|
@ -846,7 +846,7 @@ class StateSync {
|
|||
val dataCopy = ByteArray(data.remaining())
|
||||
data.get(dataCopy)
|
||||
|
||||
StateApp.instance.scopeOrNull?.launch {
|
||||
StateApp.instance.scopeOrNull?.launch(Dispatchers.IO) {
|
||||
try {
|
||||
handleData(it, opcode, subOpcode, ByteBuffer.wrap(dataCopy))
|
||||
} catch (e: Throwable) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue