Browse Source

Peerman: pass event information to listener. Save version on peer.

patch-2
olalonde 11 years ago
parent
commit
ef79d74226
  1. 3
      PeerManager.js

3
PeerManager.js

@ -111,6 +111,7 @@ PeerManager.prototype.addConnection = function(socketConn, peer) {
};
PeerManager.prototype.handleVersion = function(e) {
e.peer.version = e.message.version;
if (!e.conn.inbound) {
// TODO: Advertise our address (if listening)
}
@ -132,7 +133,7 @@ PeerManager.prototype.handleReady = function (e) {
});
if(this.isConnected == false) {
this.emit('netConnected');
this.emit('netConnected', e);
this.isConnected = true;
}
};

Loading…
Cancel
Save