From 745c67a28f23de567f4e11e096b0b6d2a3c38321 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/ddms/libs/ddmlib/src/com/android/ddmlib/DeviceMonitor.java b/ddms/libs/ddmlib/src/com/android/ddmlib/DeviceMonitor.java index f9d0fa070..87e023a67 100644 --- a/ddms/libs/ddmlib/src/com/android/ddmlib/DeviceMonitor.java +++ b/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!"); /* -- 2.11.0