Added event for login as well as original dlr pdus in the response callback

This commit is contained in:
2015-06-16 21:46:15 +02:00
parent d7b54b6dde
commit 6884c72346
4 changed files with 8 additions and 3 deletions
+2
View File
@@ -61,6 +61,7 @@ function login(pduObj) {
}
that.sock.resume();
that.emit('login');
that.sendReturn(pduObj);
});
@@ -70,6 +71,7 @@ function login(pduObj) {
// If we arrived here it means we are not logged in and that a bind_* event happened and no checkuserpass() method exists. Lets login!
this.loggedIn = true;
this.sock.resume();
this.emit('login');
this.sendReturn(pduObj);
}