final void end ( ) { final Thread thread = this . threadRef ; this . keepRunning . set ( false ) ; if ( thread != null ) { // thread.interrupt(); try { thread . join ( ) ; } catch ( InterruptedException e ) { Thread . currentThread ( ) . interrupt ( ) ; } } this . threadRef = null ; }
Stops the compressor .