Do not reschedule flush when channel is up and not writable 86/20986/1
authorRobert Varga <rovarga@cisco.com>
Tue, 19 May 2015 11:45:09 +0000 (13:45 +0200)
committerMichal Polkorab <michal.polkorab@pantheon.sk>
Fri, 22 May 2015 14:30:02 +0000 (14:30 +0000)
commit27e5a44787810cf0663f70c38f63d8ad0cdf74d9
tree6e1f3fffcd5ceb2df96596b046c38387cf873f07
parentc36521263ffcaf6a65ede1c45a487adcf40818d0
Do not reschedule flush when channel is up and not writable

Shutdown logic checks removed a ciritical check for channel writability
during reschedule. The problem is that an inactive channel is not
writable, hence we need to check for two conditions.

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