Fixed bug in remote recorder, which caused list of recorded models to be
null
This commit is contained in:
parent
57c5cc7094
commit
2fcc85853f
|
@ -72,10 +72,7 @@ public class RemoteRecorder implements Recorder {
|
||||||
String json = response.body().string();
|
String json = response.body().string();
|
||||||
if(response.isSuccessful()) {
|
if(response.isSuccessful()) {
|
||||||
ModelListResponse resp = modelListResponseAdapter.fromJson(json);
|
ModelListResponse resp = modelListResponseAdapter.fromJson(json);
|
||||||
if(resp.status.equals("success")) {
|
if(!resp.status.equals("success")) {
|
||||||
models = resp.models;
|
|
||||||
lastSync = Instant.now();
|
|
||||||
} else {
|
|
||||||
throw new IOException("Server returned error " + resp.status + " " + resp.msg);
|
throw new IOException("Server returned error " + resp.status + " " + resp.msg);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue