Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit b1c1ae9

Browse files
TreeHugger RobotAndroid (Google) Code Review
authored andcommitted
Merge "Don't resume PowerStatsDataStorage read on Exception" into sc-dev
2 parents 9c219f1 + 9f6044a commit b1c1ae9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

services/core/java/com/android/server/powerstats/PowerStatsDataStorage.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,8 @@ private static class DataReader implements FileRotator.Reader {
124124
@Override
125125
public void read(InputStream in) throws IOException {
126126
while (in.available() > 0) {
127-
try {
128-
DataElement dataElement = new DataElement(in);
129-
mCallback.onReadDataElement(dataElement.getData());
130-
} catch (IOException e) {
131-
Slog.e(TAG, "Failed to read from storage. " + e.getMessage());
132-
}
127+
DataElement dataElement = new DataElement(in);
128+
mCallback.onReadDataElement(dataElement.getData());
133129
}
134130
}
135131
}

0 commit comments

Comments
 (0)