Fix loop exit
This caused us to accidentally create ~50 LocalPortForwarder
This commit is contained in:
parent
b75b2be203
commit
fcdd6d0b95
1 changed files with 1 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ class SshTunnel(private val viewModel: VncViewModel) {
|
|||
try {
|
||||
forwarder = connection.createLocalPortForwarder(address, profile.host, profile.port)
|
||||
localPort = attemptedPort
|
||||
break
|
||||
} catch (e: IOException) {
|
||||
//Retry
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue