diff options
-rw-r--r-- | ryu/base/app_manager.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py index 821a4b5c..7d00e2e7 100644 --- a/ryu/base/app_manager.py +++ b/ryu/base/app_manager.py @@ -191,6 +191,9 @@ class RyuApp(object): return handlers def test(h): + if not ev_cls in h.callers: + # this handler does not listen the event. + return False states = h.callers[ev_cls].dispatchers if not states: # empty states means all states |