Skip to content

Commit 00bab85

Browse files
committed
Minor bug fix
1 parent a3a4170 commit 00bab85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GCD/GCDAsyncSocket.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ - (NSUInteger)readLengthForTermWithPreBuffer:(GCDAsyncSocketRingBuffer *)preBuff
850850

851851
NSUInteger loopCount = bufLen + maxPreBufferLength - termLength + 1; // Plus one. See example above.
852852

853-
NSUInteger result = preBufferLength;
853+
NSUInteger result = maxPreBufferLength;
854854

855855
NSUInteger i;
856856
for (i = 0; i < loopCount; i++)

0 commit comments

Comments
 (0)