this will be used by ofctl app which registers handlers dynamically.
Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/base/app_manager.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py
index 7afb572..db3f31a 100644
--- a/ryu/base/app_manager.py
+++ b/ryu/base/app_manager.py
@@ -196,7 +196,8 @@ class RyuApp(object):
dispatchers = lambda x: x.callers[ev.__class__].dispatchers
return [handler for handler in handlers
- if not dispatchers(handler) or state in dispatchers(handler)]
+ if not ev.__class__ in handler.callers or
+ state in dispatchers(handler)]
def get_observers(self, ev, state):
observers = []
--
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