Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Commit

Permalink
Make sure the loop handles a final complete payload
Browse files Browse the repository at this point in the history
  • Loading branch information
dominics committed Aug 7, 2012
1 parent 63a1541 commit 1f08e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Wrench/Connection.php
Expand Up @@ -283,7 +283,7 @@ public function handle($data)

$this->payload->receiveData($chunk);

if ($remaining !== 0) {
if ($remaining !== 0 && !$this->payload->isComplete()) {
continue;
}

Expand Down

0 comments on commit 1f08e36

Please sign in to comment.