Skip to content

Commit

Permalink
Removing more fixes for other bug
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthomson committed Apr 26, 2012
1 parent 8d269aa commit f850ddc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ Manager.prototype.handleClient = function (data, req) {
* @api private
*/

Manager.prototype.generateId = function (data) {
Manager.prototype.generateId = function () {
var rand = new Buffer(15); // multiple of 3 for base64
this.sequenceNumber = (this.sequenceNumber + 1) | 0;
rand.writeInt32BE(this.sequenceNumber, 11);
Expand Down Expand Up @@ -758,7 +758,7 @@ Manager.prototype.handleHandshake = function (data, req, res) {
if (err) return error(err);

if (authorized) {
var id = self.generateId(newData || handshakeData)
var id = self.generateId()
, hs = [
id
, self.enabled('heartbeats') ? self.get('heartbeat timeout') || '' : ''
Expand Down Expand Up @@ -878,9 +878,9 @@ Manager.prototype.authorize = function (data, fn) {
if (this.get('authorization')) {
var self = this;

this.get('authorization').call(this, data, function (err, authorized, newData) {
this.get('authorization').call(this, data, function (err, authorized) {
self.log.debug('client ' + authorized ? 'authorized' : 'unauthorized');
fn(err, authorized, newData);
fn(err, authorized);
});
} else {
this.log.debug('client authorized');
Expand Down

0 comments on commit f850ddc

Please sign in to comment.