Skip to content

Commit

Permalink
set readOp to false before calling handler (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby authored Nov 8, 2020
1 parent a37da88 commit 5da1571
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ziti/src/main/kotlin/org/openziti/net/nio/AsyncTLSChannel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ class AsyncTLSChannel(
}
} catch (ex: Throwable) {
e(ex){ "exception"}
readOp.set(false)
when(ex) {
is TimeoutCancellationException -> handler.failed(InterruptedByTimeoutException(), attachment)
else -> handler.failed(ex, attachment)
Expand All @@ -426,8 +427,6 @@ class AsyncTLSChannel(
readOp.set(false)
}
}


}

internal fun getSession(): SSLSession {
Expand Down

0 comments on commit 5da1571

Please sign in to comment.