Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Fix event subscription when using lazy async.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tvaroh committed Mar 17, 2018
1 parent 7ea1fad commit abd0cdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/base/src/main/scala/korolev/server/package.scala
Expand Up @@ -166,7 +166,9 @@ package object server extends LazyLogging {
} yield {

// Subscribe to events to publish them to env
korolev.topLevelComponentInstance.setEventsSubscription(env.onMessage)
korolev.topLevelComponentInstance.setEventsSubscription { message: M =>
env.onMessage(message).runIgnoreResult
}

new KorolevSession[F] {

Expand Down

0 comments on commit abd0cdd

Please sign in to comment.