Make sure server log stream exists before closing. Fixes #22

This commit is contained in:
Björn Dahlgren 2016-06-12 15:11:38 +02:00
parent 2728b2f025
commit 61ae4c6efc

View File

@ -128,7 +128,9 @@ Server.prototype.start = function() {
});
instance.on('close', function (code) {
if (logStream) {
logStream.end();
}
clearInterval(self.queryStatusInterval);
self.state = null;