public void pleaseStop ( ) { if ( stopRequired ) return ; stopRequired = true ; try { if ( receiver != null ) receiver . close ( ) ; } catch ( JMSException e ) { ErrorTools . log ( e , log ) ; } }
Ask the thread to stop