mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +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,9 +265,13 @@ public class DsfServicesTracker {
|
|||
}
|
||||
|
||||
private void doDispose() {
|
||||
fBundleContext.removeServiceListener(fListner);
|
||||
for (Iterator<ServiceReference> itr = fServices.keySet().iterator(); itr.hasNext();) {
|
||||
fBundleContext.ungetService(itr.next());
|
||||
try {
|
||||
fBundleContext.removeServiceListener(fListner);
|
||||
for (Iterator<ServiceReference> itr = fServices.keySet().iterator(); itr.hasNext();) {
|
||||
fBundleContext.ungetService(itr.next());
|
||||
}
|
||||
} catch (IllegalStateException e) {
|
||||
// May be thrown during shutdown (bug 293049).
|
||||
}
|
||||
fServices.clear();
|
||||
fServiceReferences.clear();
|
||||
|
|
Loading…
Add table
Reference in a new issue