hostlist: fix flushing.

This commit is contained in:
Christopher Jeffrey 2017-03-16 00:39:30 -07:00
parent c0e4c169ba
commit 9388256e48
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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();