After
Fourths are network programming for a while and recently one of their projects for netty has been changed. . Iv the fact that unlike with its original program, the client will freeze for 3-5 seconds before closing, after I force it to finish every end because I do not want to wait for it to be enough by a lot Bothered Is this normal for nati? Am I doing something wrong?
Main method:
Loop class:
Private static zero loop () {GL11.glClear (GL11.GL_COLOR_BUFFER_BIT); // calculates the main update method for your game and stuff I can post it if Necery but its slightly larger SpaceState.update (); Display.update (); Display.sync (60); }
group.shutdownGracefully (); Wait by default for about 3 seconds until all pending actions are fully executed, before it ends itself. You can specify a different timeout value, but the risk of being too small value is RejectedExecutionException . If you are certain that no business is left with an event loop group in your application, then you can specify very low values to end it immediately.
No comments:
Post a Comment