|
@@ -889,8 +889,8 @@ Peer.prototype._startSocket = function() {
|
|
|
self._handleServerJSONMessage(data);
|
|
|
});
|
|
|
this._socket.on('open', function() {
|
|
|
- if (this.id) {
|
|
|
- this.emit('open', this.id);
|
|
|
+ if (self.id) {
|
|
|
+ self.emit('open', self.id);
|
|
|
self._processQueue();
|
|
|
}
|
|
|
});
|