mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
make updateSession async
This commit is contained in:
parent
5ed90f735a
commit
27da36d0f8
1 changed files with 12 additions and 5 deletions
|
|
@ -252,13 +252,20 @@ class Tab
|
||||||
|
|
||||||
public function updateSession(): void
|
public function updateSession(): void
|
||||||
{
|
{
|
||||||
$this->container->browser->database->cleanSession();
|
$pid = pcntl_fork();
|
||||||
|
|
||||||
foreach ($this->_page as $page)
|
if ($pid === 0)
|
||||||
{
|
{
|
||||||
$this->container->browser->database->addSession(
|
$this->container->browser->database->cleanSession();
|
||||||
$page->navbar->request->getValue()
|
|
||||||
);
|
foreach ($this->_page as $page)
|
||||||
|
{
|
||||||
|
$this->container->browser->database->addSession(
|
||||||
|
$page->navbar->request->getValue()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue