notifyCallback(attachCallback, result);
}
private void processDetach(ToolsMessage toolsMessage) throws JsonProtocolParseException {
long resultValue = toolsMessage.result();
Result result = Result.forCode((int) resultValue);
if (result == Result.OK) {
// ignore result, we may already be in DISCONNECTED state
attachState.compareAndSet(AttachState.DETACHING, AttachState.DETACHED);
} else {
if (result == null) {