]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/helper/connection/class_BaseConnectionHelper.php
Continued:
[hub.git] / application / hub / main / helper / connection / class_BaseConnectionHelper.php
index e5abac69ce9ef940e4370566558bf875ec5477f3..eede0f8f3a9800eb0104794bd47849be2254d15c 100644 (file)
@@ -306,10 +306,7 @@ class BaseConnectionHelper extends BaseHubSystemHelper implements Registerable,
         * @return      void
         */
        private function initState() {
-               /*
-                * Get the state factory and create the initial state, we don't need
-                * the state instance here
-                */
+               // Get the state factory and create the initial state.
                PeerStateFactory::createPeerStateInstanceByName('init', $this);
        }
 
@@ -438,7 +435,7 @@ class BaseConnectionHelper extends BaseHubSystemHelper implements Registerable,
                $diff = $encodedDataArray[NetworkPackage::RAW_BUFFER_SIZE_INDEX] - strlen($encodedDataArray[NetworkPackage::RAW_ENCODED_DATA_INDEX]);
 
                // Push raw data to the package's outgoing stack
-               $this->getPackageInstance()->getStackerInstance()->pushNamed(NetworkPackage::STACKER_NAME_OUTGOING_STREAM, $encodedDataArray);
+               $this->getPackageInstance()->getStackInstance()->pushNamed(NetworkPackage::STACKER_NAME_OUTGOING_STREAM, $encodedDataArray);
        }
 
        /**