FELIX-1913 : All events are processed in a queue

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@905948 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/eventadmin/impl/src/main/java/org/apache/felix/eventadmin/impl/tasks/SyncDeliverTasks.java b/eventadmin/impl/src/main/java/org/apache/felix/eventadmin/impl/tasks/SyncDeliverTasks.java
index d9e5f4c..3b674c3 100644
--- a/eventadmin/impl/src/main/java/org/apache/felix/eventadmin/impl/tasks/SyncDeliverTasks.java
+++ b/eventadmin/impl/src/main/java/org/apache/felix/eventadmin/impl/tasks/SyncDeliverTasks.java
@@ -130,6 +130,10 @@
                             // stop the timer
                             timerBarrier.waitForRendezvous();
                         }
+                        catch (IllegalStateException ise)
+                        {
+                            // this can happen on shutdown, so we ignore it
+                        }
                         finally
                         {
                             myThread.cleanup();