Fix loop exit

This caused us to accidentally create ~50 LocalPortForwarder
This commit is contained in:
Gaurav Ujjwal 2021-09-27 14:57:46 +05:30
parent b75b2be203
commit fcdd6d0b95

View file

@ -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
}