gc code cleanup
This commit is contained in:
parent
7a18d7e20c
commit
07d0016151
@ -304,10 +304,6 @@ class ManiaControl implements CommandListener, TimerListener {
|
|||||||
|
|
||||||
$this->errorHandler->handleShutdown();
|
$this->errorHandler->handleShutdown();
|
||||||
|
|
||||||
// Disable Garbage Collector
|
|
||||||
$this->collectGarbage();
|
|
||||||
gc_disable();
|
|
||||||
|
|
||||||
$this->log('Quitting ManiaControl!');
|
$this->log('Quitting ManiaControl!');
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
@ -316,7 +312,8 @@ class ManiaControl implements CommandListener, TimerListener {
|
|||||||
* Collect Garbage
|
* Collect Garbage
|
||||||
*/
|
*/
|
||||||
public function collectGarbage() {
|
public function collectGarbage() {
|
||||||
gc_collect_cycles();
|
// TODO: remove after a check of the influence
|
||||||
|
// gc_collect_cycles();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user