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:
parent
46ad3b30d5
commit
886229a1a9
1 changed files with 9 additions and 3 deletions
|
@ -274,16 +274,22 @@ public class CommandCache implements ICommandListener
|
|||
}
|
||||
|
||||
/*
|
||||
* If we are waiting for this command to complete ( but the command has
|
||||
* been sent to the debug engine), add this request monitor to list of waiting monitors.
|
||||
* If we are already waiting for this command to complete,
|
||||
* add this request monitor to list of waiting monitors.
|
||||
*/
|
||||
|
||||
for ( CommandInfo sentCommand : fPendingQCommandsSent ) {
|
||||
if ( sentCommand.equals( cachedCmd )) {
|
||||
sentCommand.getRequestMonitorList().add(genericDone);
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue