From 1003a3b691dfbc6a03a0025a74cd646256e9eaba Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Wed, 29 Apr 2009 18:18:36 -0700 Subject: [PATCH] Make sure we request the Client allocation status even if we fail to open a debugger port for it. --- .../ddms/libs/ddmlib/src/com/android/ddmlib/DeviceMonitor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ddms/libs/ddmlib/src/com/android/ddmlib/DeviceMonitor.java b/tools/ddms/libs/ddmlib/src/com/android/ddmlib/DeviceMonitor.java index f9d0fa070..87e023a67 100644 --- a/tools/ddms/libs/ddmlib/src/com/android/ddmlib/DeviceMonitor.java +++ b/tools/ddms/libs/ddmlib/src/com/android/ddmlib/DeviceMonitor.java @@ -748,12 +748,13 @@ final class DeviceMonitor { if (AndroidDebugBridge.getClientSupport()) { client.listenForDebugger(debuggerPort); } - client.requestAllocationStatus(); } catch (IOException ioe) { client.getClientData().setDebuggerConnectionStatus(ClientData.DEBUGGER_ERROR); Log.e("ddms", "Can't bind to local " + debuggerPort + " for debugger"); // oh well } + + client.requestAllocationStatus(); } else { Log.e("ddms", "Handshake with " + client + " failed!"); /*