From 9388256e48342f815752bb2d58dbbf50c52a86de Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 16 Mar 2017 00:39:30 -0700 Subject: [PATCH] hostlist: fix flushing. --- lib/net/hostlist.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/net/hostlist.js b/lib/net/hostlist.js index e380ae07..9b5906c0 100644 --- a/lib/net/hostlist.js +++ b/lib/net/hostlist.js @@ -303,6 +303,8 @@ HostList.prototype.flush = co(function* flush() { if (!this.needsFlush) return; + this.needsFlush = false; + this.logger.debug('Writing hosts to %s.', filename); json = this.toJSON();