]> git.mxchange.org Git - hub.git/commitdiff
Socket listener first. ;-)
authorRoland Haeder <roland@mxchange.org>
Sat, 15 Feb 2014 22:57:40 +0000 (23:57 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 15 Feb 2014 22:57:40 +0000 (23:57 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/filter/task/node/class_NodeTaskHandlerInitializerFilter.php

index 57b7c8c05a06e15aac92317b365ecbf2929c4712..79cbb1a6297374fbe4fd927b03274fa45f65ffc1 100644 (file)
@@ -82,6 +82,12 @@ class NodeTaskHandlerInitializerFilter extends BaseNodeFilter implements Filtera
                // Generate package decoder task
                $taskInstance = ObjectFactory::createObjectByConfiguredName('node_package_decoder_task_class');
 
+               // Generate socket listener task
+               $taskInstance = ObjectFactory::createObjectByConfiguredName('node_socket_listener_task_class');
+
+               // Network package reader, needs to be delayed a little
+               $handlerInstance->registerTask('socket_listener', $taskInstance);
+
                // Register it as well
                $handlerInstance->registerTask('package_decoder', $taskInstance);
 
@@ -91,12 +97,6 @@ class NodeTaskHandlerInitializerFilter extends BaseNodeFilter implements Filtera
                // Register it as well
                $handlerInstance->registerTask('chunk_assembler', $taskInstance);
 
-               // Generate socket listener task
-               $taskInstance = ObjectFactory::createObjectByConfiguredName('node_socket_listener_task_class');
-
-               // Network package reader, needs to be delayed a little
-               $handlerInstance->registerTask('socket_listener', $taskInstance);
-
                // Generate DHT initialization task
                $taskInstance = ObjectFactory::createObjectByConfiguredName('node_dht_init_task_class');