code: protected final void setStateNotify(final int newState)
  	{
  		synchronized (lock) {
  			setState(newState);
  			if (newState == OK && !inBlockingSend)
  				this.sendWaitQueue.release(false);
  			// worst case: we notify 2 threads, the closing one and 1 sending
  			lock.notifyAll();
  		}
  	}
docs: See {@link #setState(int)}, with additional notification of internal threads.
  
  @param newState new state to set