Signed-off-by: OHMURA Kei <[email protected]>
---
 ryu/lib/ofctl_v1_0.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ryu/lib/ofctl_v1_0.py b/ryu/lib/ofctl_v1_0.py
index 8553c9a..1184b9b 100644
--- a/ryu/lib/ofctl_v1_0.py
+++ b/ryu/lib/ofctl_v1_0.py
@@ -172,15 +172,15 @@ def match_to_str(m):
 
 def send_stats_request(dp, stats, waiters, msgs):
     dp.set_xid(stats)
-    waiters = waiters.setdefault(dp.id, {})
+    waiters_per_dp = waiters.setdefault(dp.id, {})
     lock = gevent.event.AsyncResult()
-    waiters[stats.xid] = (lock, msgs)
+    waiters_per_dp[stats.xid] = (lock, msgs)
     dp.send_msg(stats)
 
     try:
         lock.get(timeout=DEFAULT_TIMEOUT)
     except gevent.Timeout:
-        del waiters[dp.id][stats.xid]
+        del waiters_per_dp[stats.xid]
 
 
 def get_desc_stats(dp, waiters):
-- 
1.7.9.5


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to