Commit 98a66e8
Peter Svensson
expose the shutdown method of the event loop group
To exit normally all non-daemon threads of the java process are supposed
to have stopped. TcpClientSession creates an static class member
EventLoopGroup which in turn instantiates worker threads. These need to
be stopped as a part of shutting down the server.
This patch exposes the shutdown of the EventLoopGroup as a static
function intended to be called by some central function as a part of
server shutdwon.
Nullify the EventLoopGroup in preparation for starting new users
of TcpClientSession.1 parent bfb6430 commit 98a66e8
File tree
1 file changed
+15
-1
lines changed- src/main/java/com/github/steveice10/packetlib/tcp
1 file changed
+15
-1
lines changedLines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
320 | 334 | | |
321 | 335 | | |
0 commit comments