private void stopSketchStateTimeout(){
  if (sketchStateTimeout != null) {
    sketchStateTimeout.cancel();
    sketchStateTimeout=null;
  }
}

private void stopSketchStateTimeout ( ) { if ( sketchStateTimeout != null ) { sketchStateTimeout . cancel ( ) ; sketchStateTimeout = null ; } }
cancel the state timeout timer and null it to indicate it is no longer running .
