fix this.log is not a function
This commit is contained in:
parent
6e9a012cb3
commit
f6bd9e7832
1 changed files with 3 additions and 2 deletions
|
@ -259,6 +259,7 @@ function serverCreated(socket) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function startServer() {
|
function startServer() {
|
||||||
|
var self = this;
|
||||||
this.log(
|
this.log(
|
||||||
'starting server on ',this.path,
|
'starting server on ',this.path,
|
||||||
((this.port)?`:${this.port}`:'')
|
((this.port)?`:${this.port}`:'')
|
||||||
|
@ -289,9 +290,9 @@ function startServer() {
|
||||||
this.server.on(
|
this.server.on(
|
||||||
'error',
|
'error',
|
||||||
function(err){
|
function(err){
|
||||||
this.log('server error',err);
|
self.log('server error',err);
|
||||||
|
|
||||||
this.publish(
|
self.publish(
|
||||||
'error',
|
'error',
|
||||||
err
|
err
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue