ServerSocketInterface serverSocket = this.serverSocket; socket = serverSocket.acceptSock();
ServerSocketInterface tempServerSocket = this.serverSocket; socket = tempServerSocket.acceptSock();
	public void run() {		running = true;		while (running) {			SocketInterface socket = null;			try {				if (serverSocket == null) {					if (running) {						try {							synchronized (lock) {								lock.wait(5000);							}						} catch (InterruptedException e) {						}						if (serverSocket == null) {							running = false;							continue;						}					} else {						continue;					}				}				ServerSocketInterface serverSocket = this.serverSocket;				socket = serverSocket.acceptSock();				if (serverSocket != this.serverSocket) /* socket changed while we were waiting */				{					try {						socket.close();					} catch (IOException e) {					}					socket = null;				}			} catch (IOException e) {				if (serverSocket != null) {					http.logError(NLS.bind(HttpMsg.HTTP_ACCEPT_SOCKET_EXCEPTION, new Integer(serverSocket.getLocalPort())), e);				}			}			if (socket != null) {				HttpThread thread = configuration.pool.getThread();				if (thread != null) {					thread.handleConnection(this, socket, socketTimeout);				} else {					try {						socket.close();					} catch (Exception e) {					}				}			}		}	}