mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
[214378] don't mark as finished until we have the results
This commit is contained in:
parent
5ba8f2dcc4
commit
a16c3deacc
1 changed files with 13 additions and 1 deletions
|
@ -89,7 +89,19 @@ public class DStoreSearchService extends AbstractDStoreService implements ISearc
|
|||
String statusStr = status.getName();
|
||||
if (statusStr.equals("done")) //$NON-NLS-1$
|
||||
{
|
||||
config.setStatus(IHostSearchConstants.FINISHED);
|
||||
if (status.getNestedSize() > 0){
|
||||
config.setStatus(IHostSearchConstants.FINISHED);
|
||||
}
|
||||
else { // need to wait until we have all results on client
|
||||
try
|
||||
{
|
||||
wait(2000);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
}
|
||||
config.setStatus(IHostSearchConstants.FINISHED);
|
||||
}
|
||||
}
|
||||
else if (statusStr.equals("cancelled")) //$NON-NLS-1$
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue