mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
UT: Fix server stopping.
This commit is contained in:
@@ -192,7 +192,8 @@ Server.prototype.stop = function () {
|
|||||||
if (!self.quiet) console.log("server: stop: server exited");
|
if (!self.quiet) console.log("server: stop: server exited");
|
||||||
|
|
||||||
self.emit('stopped');
|
self.emit('stopped');
|
||||||
delete this.child;
|
|
||||||
|
delete self.child;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.child.kill();
|
this.child.kill();
|
||||||
|
|||||||
@@ -129,14 +129,14 @@ var build_teardown = function (host) {
|
|||||||
.connect(false);
|
.connect(false);
|
||||||
},
|
},
|
||||||
function stopServerStep(callback) {
|
function stopServerStep(callback) {
|
||||||
|
|
||||||
if (opts.no_server)
|
if (opts.no_server)
|
||||||
{
|
{
|
||||||
|
return callback();
|
||||||
|
}
|
||||||
|
|
||||||
return callback();
|
data.server
|
||||||
}
|
.on('stopped', callback)
|
||||||
|
.stop();
|
||||||
data.server.on('stopped', callback).stop();
|
|
||||||
}
|
}
|
||||||
], done);
|
], done);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user