Fix event sent by EventEmitter classes
This commit is contained in:
@@ -9,10 +9,12 @@ function createServer(port, host, authentication, connected) {
|
||||
console.log("Incomming connexion");
|
||||
|
||||
var ctrl = new Controler(connexion, function(pwd) {
|
||||
ctrl.on("startupDone", function() {
|
||||
connected.call(null, ctrl);
|
||||
});
|
||||
|
||||
return authentication.call(null, pwd);
|
||||
});
|
||||
|
||||
connected.call(null, ctrl);
|
||||
});
|
||||
|
||||
host = host || "127.0.0.1";
|
||||
|
||||
Reference in New Issue
Block a user