fix: db 연결 실패 시 종료되게 수정
This commit is contained in:
parent
37c751cb8f
commit
1e922ca3e8
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,8 @@ int main() {
|
|||
if (!DatabaseManager::GetInstance().Init(main_context, "127.0.0.1", 33306,
|
||||
"root", "root_password",
|
||||
"socket_server")) {
|
||||
Logger::Log("경고: 초기 DB 연결에 실패했습니다. (서버는 계속 실행됨)");
|
||||
Logger::Log("DB 연결에 실패했습니다.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
NetworkService server(port, threadCount);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue