small improvements

This commit is contained in:
hydrabolt
2015-08-16 12:51:57 +01:00
parent e2dcb4e29a
commit 9422a56d4e
2 changed files with 4 additions and 4 deletions

View File

@@ -138,8 +138,9 @@ exports.Client.prototype.login = function( email, password ) {
self.connectWebsocket();
var time = Date.now();
Internal.XHR.login( email, password, function( err, token ) {
console.log(Date.now() - time);
if ( err ) {
self.triggerEvent( "disconnected", [ {
reason: "failed to log in",