]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/source/urls/class_CrawlerUploadedListUrlSource.php
Small rewrite for better use of closeFile():
[hub.git] / application / hub / main / source / urls / class_CrawlerUploadedListUrlSource.php
index ba2c81e97a8e545516e1040d77324dbd5142bdbe..4c28ab0c52ef36b0fc49b7c59478c352105b5a06 100644 (file)
@@ -275,8 +275,8 @@ class CrawlerUploadedListUrlSource extends BaseUrlSource implements UrlSource, R
                        // Debug message
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CRAWLER-SOURCE [' . __METHOD__ . ':' . __LINE__ . ']: File ' . $csvFileInstance->getFileName() . ' has been fully read.');
 
-                       // Try to close it
-                       $csvFileInstance->closeFile();
+                       // Try to close it by actually unsetting (destructing) it
+                       unset($csvFileInstance);
 
                        // This file as been fully read, so don't push it back on stack.
                        return;