Is there a way of detecting being disconnected and possibly reconnecting.
The only way I seem to get this to work is by attaching to the exception event and reconnecting open exception. this is a bit dirty for 2 reasons.
The only way I seem to get this to work is by attaching to the exception event and reconnecting open exception. this is a bit dirty for 2 reasons.
-
mutiple exceptions can be thrown so I have to manage this (other wise it reconnect mutiple times.
-
After the first SshConnectionException is thrown and ive reconnected. the exception doesnt seem to through again if I'm disconnected.