mirror of
https://github.com/danog/amp.git
synced 2024-11-27 04:24:42 +01:00
gc just to be safe prior to run loop exit
This commit is contained in:
parent
39d3212fb0
commit
ad4831888f
@ -111,6 +111,8 @@ class EvReactor implements Reactor {
|
||||
$this->loop->run($flags);
|
||||
}
|
||||
|
||||
\gc_collect_cycles();
|
||||
|
||||
$this->state = self::STOPPED;
|
||||
if ($this->stopException) {
|
||||
$e = $this->stopException;
|
||||
|
@ -92,6 +92,8 @@ class LibeventReactor implements Reactor {
|
||||
\event_base_loop($this->keepAliveBase, $flags);
|
||||
}
|
||||
|
||||
\gc_collect_cycles();
|
||||
|
||||
$this->state = self::STOPPED;
|
||||
if ($this->stopException) {
|
||||
$e = $this->stopException;
|
||||
|
@ -73,6 +73,8 @@ class NativeReactor implements Reactor {
|
||||
}
|
||||
}
|
||||
|
||||
\gc_collect_cycles();
|
||||
|
||||
$this->timersEnabled = false;
|
||||
$this->state = self::STOPPED;
|
||||
}
|
||||
|
@ -93,6 +93,8 @@ class UvReactor implements Reactor {
|
||||
\uv_run($this->loop, \UV::RUN_DEFAULT | (empty($this->immediates) ? \UV::RUN_ONCE : \UV::RUN_NOWAIT));
|
||||
}
|
||||
|
||||
\gc_collect_cycles();
|
||||
|
||||
$this->state = self::STOPPED;
|
||||
if ($this->stopException) {
|
||||
$e = $this->stopException;
|
||||
|
Loading…
Reference in New Issue
Block a user