mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Close session before module update and reopen after update
모듈 업데이트에 오랜 시간이 걸리는 경우 세션이 잠겨버려서 다른 페이지까지 먹통이 되어 버리는 문제를 방지함
This commit is contained in:
parent
e47462fb32
commit
e707f9fa93
1 changed files with 8 additions and 3 deletions
|
|
@ -38,9 +38,14 @@ class installAdminController extends install
|
|||
if(!$module_name) return new object(-1, 'invalid_request');
|
||||
|
||||
$oModule = getModule($module_name, 'class');
|
||||
if($oModule) $output = $oModule->moduleUpdate();
|
||||
else $output = new Object(-1, 'invalid_request');
|
||||
|
||||
if(!$oModule)
|
||||
{
|
||||
$output = new Object(-1, 'invalid_request');
|
||||
}
|
||||
|
||||
Rhymix\Framework\Session::close();
|
||||
$output = $oModule->moduleUpdate();
|
||||
Rhymix\Framework\Session::start();
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue