Improved GUI response time
The GUI reponds faster to the start and stop action when using the RemoteRecorder
This commit is contained in:
parent
b88803e30c
commit
8c7385229f
|
@ -75,6 +75,12 @@ public class RemoteRecorder implements Recorder {
|
|||
if(!resp.status.equals("success")) {
|
||||
throw new IOException("Server returned error " + resp.status + " " + resp.msg);
|
||||
}
|
||||
|
||||
if("start".equals(action)) {
|
||||
models.add(model);
|
||||
} else {
|
||||
models.remove(model);
|
||||
}
|
||||
} else {
|
||||
throw new IOException("Server returned error. HTTP status: " + response.code());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue