mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
stop connecting on thread interruption
This commit is contained in:
@@ -182,13 +182,13 @@ private fun connectNio(bootstrap: Bootstrap,
|
||||
}
|
||||
else if (maxAttemptCount == -1) {
|
||||
sleep(300)?.let {
|
||||
ConnectToChannelResult(it)
|
||||
return ConnectToChannelResult(it)
|
||||
}
|
||||
attemptCount++
|
||||
}
|
||||
else if (++attemptCount < maxAttemptCount) {
|
||||
sleep(attemptCount * NettyUtil.MIN_START_TIME)?.let {
|
||||
ConnectToChannelResult(it)
|
||||
return ConnectToChannelResult(it)
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user