From 82d5035b4709aa0ef8bee25114e0c78cf2d65eba Mon Sep 17 00:00:00 2001 From: Sean Proctor Date: Sun, 22 Dec 2024 09:25:10 -0500 Subject: [PATCH] don't launch notifier, run on IO dispatcher --- .../warlockfe/warlock3/stormfront/network/StormfrontClient.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stormfront/src/main/kotlin/warlockfe/warlock3/stormfront/network/StormfrontClient.kt b/stormfront/src/main/kotlin/warlockfe/warlock3/stormfront/network/StormfrontClient.kt index fd92d59..6c9f6e9 100644 --- a/stormfront/src/main/kotlin/warlockfe/warlock3/stormfront/network/StormfrontClient.kt +++ b/stormfront/src/main/kotlin/warlockfe/warlock3/stormfront/network/StormfrontClient.kt @@ -732,8 +732,8 @@ class StormfrontClient( maxTypeAhead = value } - private fun notifyListeners(event: ClientEvent) { - scope.launch { + private suspend fun notifyListeners(event: ClientEvent) { + withContext(Dispatchers.IO) { _eventFlow.emit(event) } }