Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removed irrelevant code
  • Loading branch information
albertyfwu committed Mar 17, 2013
commit 71ed0336986481f9a91daf686c06f547508a5930
5 changes: 2 additions & 3 deletions lib/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ Transport.prototype.close = function () {
* @api private
*/

Transport.prototype.send = function(packets, fn){
Transport.prototype.send = function(packets){
if ('open' == this.readyState) {
this.write(packets, fn);
this.write(packets);
} else {
throw new Error('Transport not open');
}
Expand Down Expand Up @@ -137,6 +137,5 @@ Transport.prototype.onPacket = function (packet) {

Transport.prototype.onClose = function () {
this.readyState = 'closed';
this.intervalCleanup && this.intervalCleanup.call(this);
this.emit('close');
};