Skip to content

Commit

Permalink
don't launch notifier, run on IO dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
sproctor committed Dec 22, 2024
1 parent 016440d commit 82d5035
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 82d5035

Please sign in to comment.