Fixed incorrect promise fulfilled callback in ghost-server restart function. (#7831)

closes #7760

- replaced bound start callback with anonymous callback
This commit is contained in:
Vivek Kannan 2017-01-10 04:48:23 +05:30 committed by Katharina Irrgang
parent 2d0e4ac770
commit 8993eb937f

View File

@ -131,7 +131,9 @@ GhostServer.prototype.stop = function () {
* @returns {Promise} Resolves once Ghost has restarted
*/
GhostServer.prototype.restart = function () {
return this.stop().then(this.start.bind(this));
return this.stop().then(function (ghostServer) {
return ghostServer.start();
});
};
/**