Skip to content
Snippets Groups Projects
Commit d6bfaf12 authored by Jan Kožusznik's avatar Jan Kožusznik
Browse files

fix: handle less specifix exception

parent 1b04c36b
No related branches found
No related tags found
No related merge requests found
......@@ -406,7 +406,7 @@ public class ScpClient implements Closeable {
session.connect();
}
catch(JSchException e) {
if(e.getMessage().contains("Auth fail") || e.getMessage().contains("Packet corrupted")) {
if(e.getMessage().contains("Auth fail") || e.getMessage().contains("Packet corrupt")) {
if(connectRetry < MAX_NUMBER_OF_CONNECTION_ATTEMPTS) {
connectRetry++;
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment