ReactiveMongo/Play-ReactiveMongo — pull request #88 by jroper (2014-05-25 05:47:19+00:00)
Title: Thread leak - driver doesn't get shut down on stop

When the ReactiveMongoPlugin is shutdown, it doesn't close the MongoDriver. The default MongoDriver constructor is used to create it, which means it creates an actor system for itself, and since it doesn't get closed, the actor system doesn't get shut down, leaking many threads every time a Play app is reloaded in dev mode.

Ideally, the ReactiveMongoPlugin should use the actor system provided by the Play Akka plugin, then it doesn't have to worry about shutting it down.