Skip to content

Commit

Permalink
Merge 0746f0c into 32cdaf0
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus authored Mar 1, 2021
2 parents 32cdaf0 + 0746f0c commit 72c07cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sakura_core/_main/CProcessFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ bool CProcessFactory::WaitForInitializedControlProcess()
return false;
}
DWORD dwRet;
dwRet = ::WaitForSingleObject( hEvent, 10000 ); // 最大10秒間待つ
dwRet = ::WaitForSingleObject( hEvent, 30000 );
if( WAIT_TIMEOUT == dwRet ){ // コントロールプロセスの初期化が終了しない
::CloseHandle( hEvent );
TopErrorMessage( NULL, L"エディタまたはシステムがビジー状態です。\nしばらく待って開きなおしてください。" );
Expand Down
2 changes: 1 addition & 1 deletion tests/unittests/test-winmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void CControlProcess_WaitForInitialized(std::wstring_view profileName)
handleHolder eventHolder( hEvent );

// 初期化完了イベントを待つ
DWORD dwRet = ::WaitForSingleObject( hEvent, 10000 );
DWORD dwRet = ::WaitForSingleObject( hEvent, 30000 );
if( WAIT_TIMEOUT == dwRet ){
throw std::runtime_error( "waitEvent is timeout." );
}
Expand Down

0 comments on commit 72c07cf

Please sign in to comment.