@ Override public void destroy ( ) { synchronized ( channels ) { isCurrentlyShutingDown = true ; for ( final SynchronizeFXTomcatChannel server : channels . values ( ) ) { server . shutdown ( ) ; } servers . clear ( ) ; channels . clear ( ) ; isCurrentlyShutingDown = false ; } }
Disconnect all clients an clear the connections when the handler is destroyed by CDI .