]> git.mxchange.org Git - hub.git/commitdiff
Need this back for bug tracking
authorRoland Häder <roland@mxchange.org>
Fri, 22 Feb 2013 01:18:29 +0000 (01:18 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Feb 2013 01:18:29 +0000 (01:18 +0000)
application/hub/main/decoder/package/class_PackageDecoder.php
application/hub/main/package/class_NetworkPackage.php

index f3f9257e18c99e453118088895a4a756bccf6f08..2db2c2a1be50ad88a0e32c7cb49846c51ea528a1 100644 (file)
@@ -126,6 +126,9 @@ class PackageDecoder extends BaseDecoder implements Decodeable {
         * @return      void
         */
        public function handleDecodedPackage () {
+               // Assert on amount
+               assert($this->ifDeocedPackagesLeft());
+
                // Get the next entry (assoziative array)
                $decodedData = $this->getStackerInstance()->popNamed(self::STACKER_NAME_DECODED_PACKAGE);
 
index 445906d0317f6b2c60bf59badd6688e9ed380067..a56ccb73cf222f673a5b0b4fc852bd339230fd51 100644 (file)
@@ -307,7 +307,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
         */
        private function getHashFromContent ($content) {
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NETWORK-PACKAGE: content[md5]=' . md5($content) . ',sender=' . $this->getSessionId() . ',compressor=' . $this->getCompressorInstance()->getCompressorExtension());
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NETWORK-PACKAGE: content[md5]=' . md5($content) . ',sender=' . $this->getSessionId() . ',compressor=' . $this->getCompressorInstance()->getCompressorExtension());
 
                // Create the hash
                // @TODO crc32() is very weak, but it needs to be fast
@@ -319,6 +319,9 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
                        $this->getCompressorInstance()->getCompressorExtension()
                );
 
+               // Debug message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NETWORK-PACKAGE: content[md5]=' . md5($content) . ',sender=' . $this->getSessionId() . ',hash=' . $hash . ',compressor=' . $this->getCompressorInstance()->getCompressorExtension());
+
                // And return it
                return $hash;
        }