mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +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
|
||||
{
|
||||
$this->container->browser->database->cleanSession();
|
||||
$pid = pcntl_fork();
|
||||
|
||||
foreach ($this->_page as $page)
|
||||
if ($pid === 0)
|
||||
{
|
||||
$this->container->browser->database->addSession(
|
||||
$page->navbar->request->getValue()
|
||||
);
|
||||
$this->container->browser->database->cleanSession();
|
||||
|
||||
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