mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 19:35:36 +02:00
Type should be Thread.interrupt() not Thread.interrupted().
This commit is contained in:
parent
43e0c666a5
commit
36d2f67998
1 changed files with 3 additions and 3 deletions
|
@ -93,10 +93,10 @@ public class IndexManager implements IElementChangedListener {
|
||||||
/**
|
/**
|
||||||
* Before processing all jobs, need to ensure that the indexes are up to date.
|
* Before processing all jobs, need to ensure that the indexes are up to date.
|
||||||
*/
|
*/
|
||||||
protected static void delay() {
|
protected void delay() {
|
||||||
try {
|
try {
|
||||||
// wait 10 seconds so as not to interfere with plugin startup
|
// wait 10 seconds so as not to interfere with plugin startup
|
||||||
Thread.currentThread().sleep(10000);
|
Thread.sleep(10000);
|
||||||
} catch (InterruptedException ie) {
|
} catch (InterruptedException ie) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -242,7 +242,7 @@ public class IndexManager implements IElementChangedListener {
|
||||||
|
|
||||||
public void shutdown() {
|
public void shutdown() {
|
||||||
if (thread != null)
|
if (thread != null)
|
||||||
thread.interrupted();
|
thread.interrupt();
|
||||||
CoreModel.getDefault().removeElementChangedListener(this);
|
CoreModel.getDefault().removeElementChangedListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue