BUG-3219: Fix flush task scheduling 70/20970/1
authorRobert Varga <rovarga@cisco.com>
Mon, 18 May 2015 16:11:04 +0000 (18:11 +0200)
committerMichal Polkorab <michal.polkorab@pantheon.sk>
Fri, 22 May 2015 11:01:21 +0000 (13:01 +0200)
commitcd1b82fde7dff45104d970f8655c07ec2f5286ee
tree5b656e424ddd11f7c8a1ea7d29d8b412c68aeee5
parent0c09ae4a352cccbd7dbaa1058bfb5ac370b9310a
BUG-3219: Fix flush task scheduling

The flush task should be conditionally scheduled if we have any
outstanding requests. We also cannot directly report the channel
shutdown until we have ensured that all requests have been completed by
the user.

Change-Id: Ic8d266d6167eed15f3a51bf8476bbd1db3071dd4
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 752e794406bc31ea5412f780b01d5db5c5b80e33)
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueManager.java