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) } }