fix this.log is not a function

This commit is contained in:
Alexandre Tiertant 2017-05-05 14:30:22 +02:00 committed by GitHub
parent 6e9a012cb3
commit f6bd9e7832
1 changed files with 3 additions and 2 deletions

View File

@ -259,6 +259,7 @@ function serverCreated(socket) {
}
function startServer() {
var self = this;
this.log(
'starting server on ',this.path,
((this.port)?`:${this.port}`:'')
@ -289,9 +290,9 @@ function startServer() {
this.server.on(
'error',
function(err){
this.log('server error',err);
self.log('server error',err);
this.publish(
self.publish(
'error',
err
);