final void initialize(boolean isOnline, SocketWorker worker) {
	if (socketWorker != null) {
	    try {
		socketWorker.reset();
	    } catch (Exception exception) {
		/* empty */
	    }
	    socketWorker = null;
	}
	anInt3193++;
	socketWorker = worker;
	writeConnectionRequest();
	writeStatusUpdate(isOnline);
	((ByteBuffer) headerBuffer).position = 0;
	currentFileRequest = null;
	for (;;) {
	    OndemandFileRequest request = (OndemandFileRequest) priHoldingQueue.removeFirst();
	    if (request == null)
		break;
	    priRequestsQueue.add(request);
	}
	for (;;) {
	    OndemandFileRequest request
		= (OndemandFileRequest) reqHoldingQueue.removeFirst();
	    if (request == null)
		break;
	    requestsQueue.add(request);
	}
	if (decipherKey != 0) {
	    try {
		((ByteBuffer) requestByteBuffer).position = 0;
		requestByteBuffer.putByte(4);
		requestByteBuffer.putByte(decipherKey);
		requestByteBuffer.putShort(0);
		socketWorker.write((((ByteBuffer) requestByteBuffer) .payload), 0, 4);
	    } catch (IOException ioexception) {
		try {
		    socketWorker.reset();
		} catch (Exception exception) {
		    /* empty */
		}
		((OndemandWorker) this).status = -2;
		((OndemandWorker) this).attempts++;
		socketWorker = null;
	    }
	}
	totalTime = 0;
	lastTime = Class62.getCurrentTimeMillis();
    }