Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Correctly restore SessionSettings (#2080)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and bluemarvin committed Oct 28, 2019
1 parent dac11c4 commit 55a0b24
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ public void write(JsonWriter out, T value) throws IOException {
}
}
}
if (session.mSettings != null) {
out.name("mSettings").jsonValue(gson.toJson(session.mSettings));
}
out.endObject();

} else {
Expand All @@ -112,16 +115,7 @@ public void write(JsonWriter out, T value) throws IOException {
public T read(JsonReader in) throws IOException {
try {
return delegate.read(in);

} catch (IOException e) {
in.skipValue();
return null;

} catch (IllegalStateException e) {
in.skipValue();
return null;

} catch (JsonSyntaxException e) {
} catch (Exception e) {
in.skipValue();
return null;
}
Expand Down

0 comments on commit 55a0b24

Please sign in to comment.