Add a gc call after the build as that's a good time to perform it

This commit is contained in:
Guillaume Nodet
2020-02-17 11:05:23 +01:00
parent 6c435ef44f
commit 731e2836a6

View File

@@ -405,8 +405,6 @@ public class Server implements AutoCloseable, Runnable {
LOGGER.info("Dispatch message: " + m); LOGGER.info("Dispatch message: " + m);
connection.dispatch(m); connection.dispatch(m);
} }
} catch (InterruptedException e) {
// ignore
} catch (Throwable t) { } catch (Throwable t) {
LOGGER.error("Error dispatching events", t); LOGGER.error("Error dispatching events", t);
} }
@@ -427,6 +425,7 @@ public class Server implements AutoCloseable, Runnable {
} finally { } finally {
LOGGER.info("Daemon back to idle"); LOGGER.info("Daemon back to idle");
updateState(DaemonState.Idle); updateState(DaemonState.Idle);
System.gc();
} }
} }