Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
masuidrive committed Dec 3, 2011
1 parent a574988 commit ebaa400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/websocket-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ WebSocket.prototype._read_callback = function(e) {
return nextTick();
}
else {
if(frame.size < this.bufferSizes) {
if(frame.size < this.bufferSize) {
var nextBuffer = Ti.createBuffer({ length: BUFFER_SIZE });
if(this.bufferSize - frame.size > 0) {
nextBuffer.copy(this.buffer, 0, frame.size, this.bufferSize - frame.size);
Expand Down
2 changes: 1 addition & 1 deletion ti-websocket-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ WebSocket.prototype._read_callback = function(e) {
return nextTick();
}
else {
if(frame.size < this.bufferSizes) {
if(frame.size < this.bufferSize) {
var nextBuffer = Ti.createBuffer({ length: BUFFER_SIZE });
if(this.bufferSize - frame.size > 0) {
nextBuffer.copy(this.buffer, 0, frame.size, this.bufferSize - frame.size);
Expand Down

0 comments on commit ebaa400

Please sign in to comment.