BUG-3219: Fix flush task scheduling 60/20660/4
authorRobert Varga <rovarga@cisco.com>
Mon, 18 May 2015 16:11:04 +0000 (18:11 +0200)
committerRobert Varga <rovarga@cisco.com>
Mon, 18 May 2015 18:04:44 +0000 (20:04 +0200)
commit752e794406bc31ea5412f780b01d5db5c5b80e33
tree3026d524d1165ed953c34b79b5d92397839789db
parent44b028491689d8d89c2ffea2e7bc6bb2d80209fe
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>
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