commit ee02ad3fb904c10aaabdde44fd4dffbf3cde442e Author: David Fifield david@bamsoftware.com Date: Sun Jul 24 03:21:48 2011 +0000
Simpler reclaiming of RTMFPSocket buffer space. --- RTMFPSocket.as | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/RTMFPSocket.as b/RTMFPSocket.as index 4dd54c5..421f9cc 100644 --- a/RTMFPSocket.as +++ b/RTMFPSocket.as @@ -192,8 +192,7 @@ package buffer.readBytes(output, offset, length); if (buffer.bytesAvailable == 0) { /* Reclaim memory space. */ - buffer.position = 0; - buffer.length = 0; + buffer.clear(); } }
tor-commits@lists.torproject.org