mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +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');
|
if(!$module_name) return new object(-1, 'invalid_request');
|
||||||
|
|
||||||
$oModule = getModule($module_name, 'class');
|
$oModule = getModule($module_name, 'class');
|
||||||
if($oModule) $output = $oModule->moduleUpdate();
|
if(!$oModule)
|
||||||
else $output = new Object(-1, 'invalid_request');
|
{
|
||||||
|
$output = new Object(-1, 'invalid_request');
|
||||||
|
}
|
||||||
|
|
||||||
|
Rhymix\Framework\Session::close();
|
||||||
|
$output = $oModule->moduleUpdate();
|
||||||
|
Rhymix\Framework\Session::start();
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue