Currently, calling stop() on a HAP Server will shutdown the NIO event loop group, no matter whether it was created by that Server instance or provided by a caller. This PR will ensure that if the EventLoopGroup is provided in the initialiser, and hence most likely shared with other Servers and NIO channels, then stopping the server will not shutdown the event loop.
Currently, calling
stop()
on a HAPServer
will shutdown the NIO event loop group, no matter whether it was created by that Server instance or provided by a caller. This PR will ensure that if the EventLoopGroup is provided in the initialiser, and hence most likely shared with other Servers and NIO channels, then stopping the server will not shutdown the event loop.