Skip to content
This repository has been archived by the owner on May 17, 2020. It is now read-only.

Commit

Permalink
Fix IOException on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gohai committed Jun 3, 2016
1 parent 8c3351c commit fa9b5e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ source.repository=https://github.com/gohai/processing-uploadtopi.git
# This is used to compare different versions of the same Tool, and check if an
# update is available.

tool.version=4
tool.version=5


# The version as the user will see it.

tool.prettyVersion=1.0.3
tool.prettyVersion=1.0.4


# The min and max revision of Processing compatible with your Tool.
Expand Down
5 changes: 4 additions & 1 deletion src/gohai/uploadtopi/UploadToPiTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ public static SSHClient connect(String host, String username, String password) t
DefaultConfig defaultConfig = new DefaultConfig();
defaultConfig.setKeepAliveProvider(KeepAliveProvider.KEEP_ALIVE);
SSHClient ssh = new SSHClient(defaultConfig);
ssh.loadKnownHosts();
// seems to throw an IOException on Windows
try {
ssh.loadKnownHosts();
} catch (Exception e) {}

// set a timeout to try to work around this bizzare timeout error on some OS X machines:
// java.net.ConnectException: Operation timed out
Expand Down

0 comments on commit fa9b5e5

Please sign in to comment.