mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Make sure server log stream exists before closing. Fixes #22
This commit is contained in:
parent
2728b2f025
commit
61ae4c6efc
@ -128,7 +128,9 @@ Server.prototype.start = function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
instance.on('close', function (code) {
|
instance.on('close', function (code) {
|
||||||
|
if (logStream) {
|
||||||
logStream.end();
|
logStream.end();
|
||||||
|
}
|
||||||
|
|
||||||
clearInterval(self.queryStatusInterval);
|
clearInterval(self.queryStatusInterval);
|
||||||
self.state = null;
|
self.state = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user