Tiny code cleanup
This commit is contained in:
parent
5f1dd20d74
commit
a91f3e4acf
@ -183,11 +183,9 @@ class HttpTunnelingChannelHandler extends SimpleChannelHandler {
|
|||||||
try {
|
try {
|
||||||
connected = false;
|
connected = false;
|
||||||
reconnectCondition.await(reconnectTimeoutMillis, TimeUnit.MILLISECONDS);
|
reconnectCondition.await(reconnectTimeoutMillis, TimeUnit.MILLISECONDS);
|
||||||
}
|
} catch (InterruptedException e) {
|
||||||
catch (InterruptedException e) {
|
// return with current state.
|
||||||
return connected;
|
} finally {
|
||||||
}
|
|
||||||
finally {
|
|
||||||
reconnectLock.unlock();
|
reconnectLock.unlock();
|
||||||
}
|
}
|
||||||
return connected;
|
return connected;
|
||||||
|
Loading…
Reference in New Issue
Block a user