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

Commit

Permalink
Increase timeout for sync
Browse files Browse the repository at this point in the history
  • Loading branch information
gohai committed Jun 3, 2016
1 parent fa9b5e5 commit bfb6319
Show file tree
Hide file tree
Showing 2 changed files with 3 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=5
tool.version=6


# The version as the user will see it.

tool.prettyVersion=1.0.4
tool.prettyVersion=1.0.5


# The min and max revision of Processing compatible with your Tool.
Expand Down
2 changes: 1 addition & 1 deletion src/gohai/uploadtopi/UploadToPiTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public void stopSketches() throws IOException {
public void syncDisks() throws IOException {
Session session = ssh.startSession();
Command cmd = session.exec("sync");
cmd.join(3, TimeUnit.SECONDS);
cmd.join(30, TimeUnit.SECONDS);
if (cmd.getExitStatus() != 0) {
// not critical
System.err.println("Error syncing disks. Make sure you power off the Pi safely to prevent file corruption.");
Expand Down

0 comments on commit bfb6319

Please sign in to comment.