diff --git a/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/internal/core/client/ClientCommandHandler.java b/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/internal/core/client/ClientCommandHandler.java index 00d8481bb66..8071ae40c32 100644 --- a/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/internal/core/client/ClientCommandHandler.java +++ b/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/internal/core/client/ClientCommandHandler.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2002, 2009 IBM Corporation and others. + * Copyright (c) 2002, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -15,11 +15,11 @@ * David McKnight (IBM) [220123][dstore] Configurable timeout on irresponsiveness * David McKnight (IBM) [222168][dstore] Buffer in DataElement is not sent * David McKnight (IBM) [246826][dstore] KeepAlive does not work correctly + * David McKnight (IBM) [306853][dstore] RD/z client hang after browse copy book command *******************************************************************************/ package org.eclipse.dstore.internal.core.client; - -import org.eclipse.dstore.core.java.IRemoteClassInstance; + import org.eclipse.dstore.core.java.IRemoteClassInstance; import org.eclipse.dstore.core.model.CommandHandler; import org.eclipse.dstore.core.model.DE; import org.eclipse.dstore.core.model.DataElement; @@ -28,6 +28,7 @@ import org.eclipse.dstore.core.model.DataStoreResources; import org.eclipse.dstore.internal.core.util.Sender; + /** * The ClientCommandHandler is reponsible for maintaining * a queue of commands and periodically sending commands @@ -225,7 +226,7 @@ public class ClientCommandHandler extends CommandHandler while (_commands.size() > 0) { DataElement command = null; - //synchronized (_commands) + synchronized (_commands) { command = (DataElement)_commands.remove(0); }