public synchronized void waitForConnect() {
		try {
			if(!isFinished)
				this.wait();
		} catch(InterruptedException e) {
			throw new NioException(e);
		}
		
		if(e != null) {
			throw new NioException(e);
		}	
	}