1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[219523] Fixed bug causing the cache to fail if previous command was still in command control's queue.

This commit is contained in:
Pawel Piech 2008-02-19 23:46:06 +00:00
parent 46ad3b30d5
commit 886229a1a9

View file

@ -274,16 +274,22 @@ public class CommandCache implements ICommandListener
} }
/* /*
* If we are waiting for this command to complete ( but the command has * If we are already waiting for this command to complete,
* been sent to the debug engine), add this request monitor to list of waiting monitors. * add this request monitor to list of waiting monitors.
*/ */
for ( CommandInfo sentCommand : fPendingQCommandsSent ) { for ( CommandInfo sentCommand : fPendingQCommandsSent ) {
if ( sentCommand.equals( cachedCmd )) { if ( sentCommand.equals( cachedCmd )) {
sentCommand.getRequestMonitorList().add(genericDone); sentCommand.getRequestMonitorList().add(genericDone);
return; return;
} }
} }
for ( CommandInfo notYetSentCommand : fPendingQCommandsNotYetSent ) {
if ( notYetSentCommand.equals( cachedCmd )) {
notYetSentCommand.getRequestMonitorList().add(genericDone);
return;
}
}
/* /*
* We see if this command can be combined into a coalesced one. The * We see if this command can be combined into a coalesced one. The