Attempt to reduce harmless warnings during shutdown
Change-Id: I431c9d5944c1655c45c4ece8b39da4fdb108c6f4
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -77,6 +77,9 @@ public class GroupStatsCollector implements TimerTask { | ... | @@ -77,6 +77,9 @@ public class GroupStatsCollector implements TimerTask { |
77 | if (sw.getRole() != RoleState.MASTER) { | 77 | if (sw.getRole() != RoleState.MASTER) { |
78 | return; | 78 | return; |
79 | } | 79 | } |
80 | + if (!sw.isConnected()) { | ||
81 | + return; | ||
82 | + } | ||
80 | Long statsXid = OpenFlowGroupProvider.getXidAndAdd(2); | 83 | Long statsXid = OpenFlowGroupProvider.getXidAndAdd(2); |
81 | OFGroupStatsRequest statsRequest = sw.factory().buildGroupStatsRequest() | 84 | OFGroupStatsRequest statsRequest = sw.factory().buildGroupStatsRequest() |
82 | .setGroup(OFGroup.ALL) | 85 | .setGroup(OFGroup.ALL) | ... | ... |
-
Please register or login to post a comment