commit | 828cd597a7ef3888a3cf193f667299b2f0179b9a | [log] [tgz] |
---|---|---|
author | Harold Huang <baymaxhuang@gmail.com> | Sat Nov 04 10:46:04 2017 +0800 |
committer | Thomas Vachuska <tom@opennetworking.org> | Mon Nov 06 19:14:48 2017 +0000 |
tree | 99f1752faf57575c4a1afe86aacd49751bc7a7d8 | |
parent | 0676c9725d4b2823735e373f377f239072d38996 [diff] |
Fix: shut down the message dispatch thread gracefully when the channel is inactive. At present, the message dispatch task is an infinte loop without return, the thread will nerver be destroyed even the channel is disconnected. Change-Id: I0e8666e080677f1d549cec5e31f22b1e32f3a16a
diff --git a/protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OFChannelHandler.java b/protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OFChannelHandler.java index cbcbf58..9be0b53 100644 --- a/protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OFChannelHandler.java +++ b/protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OFChannelHandler.java
@@ -1266,7 +1266,7 @@ getSwitchInfoString()); if (dispatcher != null) { - dispatcher.shutdown(); + dispatcher.shutdownNow(); } if (thisdpid != 0) {