mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 03:53:21 +02:00
Bug 293049 - [concurrent] Received IllegalStateException on shutdown
This commit is contained in:
parent
3c3cbab6e7
commit
26033a36c2
1 changed files with 7 additions and 3 deletions
|
@ -265,10 +265,14 @@ public class DsfServicesTracker {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void doDispose() {
|
private void doDispose() {
|
||||||
|
try {
|
||||||
fBundleContext.removeServiceListener(fListner);
|
fBundleContext.removeServiceListener(fListner);
|
||||||
for (Iterator<ServiceReference> itr = fServices.keySet().iterator(); itr.hasNext();) {
|
for (Iterator<ServiceReference> itr = fServices.keySet().iterator(); itr.hasNext();) {
|
||||||
fBundleContext.ungetService(itr.next());
|
fBundleContext.ungetService(itr.next());
|
||||||
}
|
}
|
||||||
|
} catch (IllegalStateException e) {
|
||||||
|
// May be thrown during shutdown (bug 293049).
|
||||||
|
}
|
||||||
fServices.clear();
|
fServices.clear();
|
||||||
fServiceReferences.clear();
|
fServiceReferences.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue