* @return void
*/
public function executeTask () {
+ // "Cache" decoder instance
+ $decoderInstance = $this->getDecoderInstance();
+
// Check if the stacker has some entries left
- if ($this->getDecoderInstance()->ifUnhandledRawPackageDataLeft()) {
+ if ($decoderInstance->ifUnhandledRawPackageDataLeft()) {
// Then handle it
- $this->getDecoderInstance()->handleRawPackageData();
- } elseif ($this->getDecoderInstance()->ifDeocedPackagesLeft()) {
+ $decoderInstance->handleRawPackageData();
+ } elseif ($decoderInstance->ifDeocedPackagesLeft()) {
// Some decoded packages have arrived (for this peer)
- $this->getDecoderInstance()->handleDecodedPackage();
+ $decoderInstance->handleDecodedPackage();
}
}
}