diff options
author | Konstantin Lopyrev <klopyrev@google.com> | 2010-08-27 19:02:42 -0700 |
---|---|---|
committer | Konstantin Lopyrev <klopyrev@google.com> | 2010-08-27 19:02:42 -0700 |
commit | 3c4eaad58baabb2153d3ec5101246274db73b23d (patch) | |
tree | 55bee7a59b9072c3777cc10ed4672544ce251bc7 /hierarchyviewer2/libs | |
parent | 720940737d05ee66db398dc39a738fc84d97d78f (diff) | |
download | sdk-3c4eaad58baabb2153d3ec5101246274db73b23d.zip sdk-3c4eaad58baabb2153d3ec5101246274db73b23d.tar.gz sdk-3c4eaad58baabb2153d3ec5101246274db73b23d.tar.bz2 |
Adding a smaller timeout to capturing nodes. This is so that it doesn't get stuck.
Change-Id: Ie2fd89d74a2a044334b45ba050f2c3150f63a8e7
Diffstat (limited to 'hierarchyviewer2/libs')
-rw-r--r-- | hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/device/DeviceBridge.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/device/DeviceBridge.java b/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/device/DeviceBridge.java index d00c4dc..20feeec 100644 --- a/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/device/DeviceBridge.java +++ b/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/device/DeviceBridge.java @@ -513,6 +513,7 @@ public class DeviceBridge { DeviceConnection connection = null; try { connection = new DeviceConnection(window.getDevice()); + connection.getSocket().setSoTimeout(5000); connection.sendCommand("CAPTURE " + window.encode() + " " + viewNode.toString()); //$NON-NLS-1$ return new Image(Display.getDefault(), connection.getSocket().getInputStream()); } catch (Exception e) { |