Fixed bug in remote recorder, which caused list of recorded models to be

null
This commit is contained in:
0xboobface 2018-07-06 13:37:10 +02:00
parent 57c5cc7094
commit 2fcc85853f
1 changed files with 1 additions and 4 deletions

View File

@ -72,10 +72,7 @@ public class RemoteRecorder implements Recorder {
String json = response.body().string();
if(response.isSuccessful()) {
ModelListResponse resp = modelListResponseAdapter.fromJson(json);
if(resp.status.equals("success")) {
models = resp.models;
lastSync = Instant.now();
} else {
if(!resp.status.equals("success")) {
throw new IOException("Server returned error " + resp.status + " " + resp.msg);
}
} else {