#vulnerable code 
                             public void close() {
		if( thread != null ) {
			thread.interrupt();
			closelock.lock();
			try {
				if( selector != null )
					selector.wakeup();
			} finally {
				closelock.unlock();
			}
		}

	} 
                            #location 3 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                             public void close() {
		if( thread != null ) {
			conn.close( CloseFrame.NORMAL );
			/*closelock.lock();
			try {
				if( selector != null )
					selector.wakeup();
			} finally {
				closelock.unlock();
			}*/
		}

	}