Update remote

This commit is contained in:
wltsmrz
2013-08-22 10:55:09 -07:00
parent c545e19e40
commit 009143f724

View File

@@ -34,7 +34,6 @@ var utils = require('./utils');
var config = require('./config');
var sjcl = require('../../../build/sjcl');
/**
Interface to manage the connection to a Ripple server.
@@ -307,15 +306,15 @@ Remote.prototype._set_state = function (state) {
switch (state) {
case 'online':
this._online_state = 'open';
this._connected = true;
this._online_state = 'open';
this._connected = true;
this.emit('connect');
this.emit('connected');
break;
case 'offline':
this._online_state = 'closed';
this._connected = false;
this._online_state = 'closed';
this._connected = false;
this.emit('disconnect');
this.emit('disconnected');
break;