summaryrefslogtreecommitdiffhomepage
path: root/ryu/lib/ofctl_v1_2.py
diff options
context:
space:
mode:
Diffstat (limited to 'ryu/lib/ofctl_v1_2.py')
-rw-r--r--ryu/lib/ofctl_v1_2.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ryu/lib/ofctl_v1_2.py b/ryu/lib/ofctl_v1_2.py
index 8ca798ad..48d59974 100644
--- a/ryu/lib/ofctl_v1_2.py
+++ b/ryu/lib/ofctl_v1_2.py
@@ -543,9 +543,8 @@ def send_stats_request(dp, stats, waiters, msgs):
waiters_per_dp[stats.xid] = (lock, msgs)
dp.send_msg(stats)
- try:
- lock.wait(timeout=DEFAULT_TIMEOUT)
- except hub.Timeout:
+ lock.wait(timeout=DEFAULT_TIMEOUT)
+ if not lock.is_set():
del waiters_per_dp[stats.xid]