mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
07.32.2019 21d4ef254deeee8cae5459c6cf4cfb996fb7040b
borgbutler-core/src/main/java/de/micromata/borgbutler/jobs/AbstractCommandLineJob.java
@@ -139,4 +139,14 @@
            EnvironmentUtils.addVariableToEnvironment(env, name + "=" + value);
        }
    }
    /**
     * Frees the output streams.
     * Should be called after a job was done, failed or cancelled while running.
     */
    public void cleanUp() {
        log.info("Freeing resources of job: " + commandLineAsString);
        outputStream = null;
        errorOutputStream = null;
    }
}