]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/queuehandler.php
ah, turns out each() stuff is called as a method
[quix0rs-gnu-social.git] / lib / queuehandler.php
index d673f7f947b9ec94879573521082c4680beb0887..237df9a7b818f948a4ca1002bd2d88daa72e91a7 100644 (file)
@@ -87,11 +87,15 @@ class QueueHandler extends Daemon {
                                                continue;
                                        }
                                        $this->log(LOG_INFO, 'finished broadcasting notice ID = ' . $notice->id);
+                                       $notice->free();
+                                       unset($notice);
                                        $notice = NULL;
                                } else {
                                        $this->log(LOG_WARNING, 'queue item for notice that does not exist');
                                }
                                $qi->delete();
+                               $qi->free();
+                               unset($qi);
                                $this->idle(0);
                        } else {
                                $this->clear_old_claims();
@@ -115,6 +119,8 @@ class QueueHandler extends Daemon {
                $qi->transport = $this->transport();
                $qi->whereAdd('now() - claimed > '.CLAIM_TIMEOUT);
                $qi->update(DB_DATAOBJECT_WHEREADD_ONLY);
+               $qi->free();
+               unset($qi);
        }
        
        function log($level, $msg) {