From 231c1ee448d0c665ee58d6263444245a06c04099 Mon Sep 17 00:00:00 2001 From: Luis Uguina Date: Tue, 16 Jun 2020 22:03:17 +1000 Subject: [PATCH] Fix: remove unused checkpoints from memory (#258) --- src/com/sheepit/client/Client.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/sheepit/client/Client.java b/src/com/sheepit/client/Client.java index edb4dfe..73078b3 100644 --- a/src/com/sheepit/client/Client.java +++ b/src/com/sheepit/client/Client.java @@ -242,6 +242,7 @@ import lombok.Data; catch (InterruptedException e1) { return -3; } + this.log.removeCheckPoint(step); continue; // go back to ask job } catch (FermeExceptionServerOverloaded e) { @@ -255,6 +256,7 @@ import lombok.Data; catch (InterruptedException e1) { return -3; } + this.log.removeCheckPoint(step); continue; // go back to ask job } catch (FermeExceptionServerInMaintenance e) { @@ -268,6 +270,7 @@ import lombok.Data; catch (InterruptedException e1) { return -3; } + this.log.removeCheckPoint(step); continue; // go back to ask job } catch (FermeExceptionBadResponseFromServer e) { @@ -280,6 +283,7 @@ import lombok.Data; catch (InterruptedException e1) { return -3; } + this.log.removeCheckPoint(step); continue; // go back to ask job } catch (FermeException e) { @@ -289,6 +293,7 @@ import lombok.Data; e.printStackTrace(pw); this.log.debug("Client::run exception " + e + " stacktrace: " + sw.toString()); this.sendError(step); + this.log.removeCheckPoint(step); continue; } @@ -309,6 +314,7 @@ import lombok.Data; } time_slept += 250; } + this.log.removeCheckPoint(step); continue; // go back to ask job }