Merge "Don't throw an exception if write failed"

This commit is contained in:
TreeHugger Robot
2018-12-10 22:12:27 +00:00
committed by Android (Google) Code Review

View File

@@ -331,7 +331,7 @@ public final class UiAutomationConnection extends IUiAutomationConnection.Stub {
writeTo.flush();
}
} catch (IOException ioe) {
throw new RuntimeException("Error while reading/writing ", ioe);
Log.w(TAG, "Error while reading/writing to streams");
} finally {
IoUtils.closeQuietly(readFrom);
IoUtils.closeQuietly(writeTo);