Skip to content

Commit

Permalink
remove duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
masuidrive committed Dec 3, 2011
1 parent d35b8f8 commit d60d955
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/websocket-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,6 @@ WebSocket.prototype._read_callback = function(e) {
return nextTick();
}

var nextTick = function() {
self._socketReadBuffer.clear();
Ti.Stream.read(self._socket, self._socketReadBuffer, function(e) { self._read_callback(e); });
};

if (e.bytesProcessed === -1) { // EOF
this._socket_close();
return undefined;
Expand Down

0 comments on commit d60d955

Please sign in to comment.