Skip to content
Permalink
Browse files

Merge pull request #84 from FreddieSanchez/freddie/queued-messages

Fix potential race condition
  • Loading branch information...
darkfrog26 committed Apr 10, 2019
2 parents 0831c56 + 3603ead commit 3fb91d3f68e5a24fc912fe8ab0bde420d4248199
Showing with 2 additions and 2 deletions.
  1. +2 −2 serverUndertow/src/main/scala/io/youi/server/WebSocketClient.scala
@@ -135,8 +135,8 @@ class WebSocketClient(url: URL,
}

private def checkBacklog(): Unit = {
if (backlog.nonEmpty) {
synchronized {
synchronized {
if (backlog.nonEmpty) {
val messages = backlog
backlog = Nil
messages.foreach {

0 comments on commit 3fb91d3

Please sign in to comment.
You can’t perform that action at this time.