1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-13 12:05:21 +02:00

[306853][dstore] RD/z client hang after browse copy book command

This commit is contained in:
David McKnight 2010-03-24 15:21:09 +00:00
parent 24a0671ae7
commit db54411058

View file

@ -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,10 +15,10 @@
* 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.model.CommandHandler;
import org.eclipse.dstore.core.model.DE;
@ -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);
}