]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/dht/node/class_NodeDhtFacade.php
Also this assertion was a bit to hard.
[hub.git] / application / hub / main / dht / node / class_NodeDhtFacade.php
index 16a7a995f31001e381a7ca8d89b2d5f774129223..56ed66f77db52d9ed2be40b918e36bb59523a645 100644 (file)
@@ -328,7 +328,12 @@ class NodeDhtFacade extends BaseDht implements DistributableNode, Registerable {
 
                // Make sure the result instance is valid
                assert($resultInstance instanceof SearchableResult);
-               assert($resultInstance->valid());
+
+               // No entries found?
+               if (!$resultInstance->valid()) {
+                       // Then skip below loop
+                       return array();
+               } // END - if
 
                // Init array
                $recipients = array();