mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 07:35:24 +02:00
[164118] move cancelled check til after done check
This commit is contained in:
parent
d9a0758560
commit
acb5496c7b
1 changed files with 11 additions and 11 deletions
|
@ -287,15 +287,17 @@ public class DStoreStatusMonitor implements IDomainListener
|
|||
// Current thread is UI thread
|
||||
while (_workingStatuses.contains(status))
|
||||
{
|
||||
// while (display.readAndDispatch()) {
|
||||
/*
|
||||
while (display.readAndDispatch()) {
|
||||
//Process everything on event queue
|
||||
// }
|
||||
}
|
||||
|
||||
if ((monitor != null) && (monitor.isCanceled()))
|
||||
{
|
||||
setCancelled(status);
|
||||
throw new InterruptedException();
|
||||
}
|
||||
*/
|
||||
|
||||
boolean statusDone = determineStatusDone(status);
|
||||
|
||||
|
@ -331,21 +333,19 @@ public class DStoreStatusMonitor implements IDomainListener
|
|||
// Current thread is not UI thread
|
||||
while (_workingStatuses.contains(status))
|
||||
{
|
||||
|
||||
if ((monitor != null) && (monitor.isCanceled()))
|
||||
{
|
||||
setCancelled(status);
|
||||
throw new InterruptedException();
|
||||
}
|
||||
|
||||
boolean statusDone = determineStatusDone(status);
|
||||
|
||||
if (statusDone)
|
||||
if (statusDone)
|
||||
{
|
||||
setDone(status);
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((monitor != null) && (monitor.isCanceled()))
|
||||
{
|
||||
setCancelled(status);
|
||||
throw new InterruptedException();
|
||||
}
|
||||
|
||||
waitForUpdate();
|
||||
//Thread.sleep(200);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue