Make shutdown hook optional

Issue #150 closed
Nathan Bruning created an issue

We're using shutdown hooks in our application to send out certain packets just before closing the connection.

However, Babbler's shutdown hook is ran simultaneously and just closes the connection immediately. Unfortunately, there is no specific ordering of shutdown tasks in the JVM.

For an application that handles shutdown gracefully itself, it would be useful to disable Babbler's built-in shutdown behavior.

Comments (6)

  1. Christian Schudt repo owner

    It's fixed on master branch now. Will probably pull it into 0.8 branch for the 0.8.1 release. But sorry, I have no ETA for it now.

  2. Log in to comment