this will be used by ofctl app which registers handlers dynamically. when unobserving an event cls dynamically, there might be events of the cls left in app's event queue already.
Signed-off-by: YAMAMOTO Takashi <[email protected]> --- ryu/base/app_manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py index 821a4b5..7d00e2e 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 -- 1.8.3.1 ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
