Fixed bug while reading client buffer when reached end of multiple packe...

...ts inside the same buffer run