Skip to content

Commit 2def393

Browse files
committed
fix console on windows and fix close crash
1 parent 767dccb commit 2def393

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Server/Components/CAPI/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class CAPIComponent final : public IComponent
6969
COMPONENT_UNLOADED(mgr->textlabels)
7070
COMPONENT_UNLOADED(mgr->vehicles)
7171
COMPONENT_UNLOADED(mgr->models)
72+
COMPONENT_UNLOADED(mgr->npcs)
7273
}
7374

7475
void free() override

Server/Components/Console/console_impl.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,7 @@ class ConsoleComponent final : public IConsoleComponent, public CoreEventHandler
214214
threadData = new ThreadProcData { true, this };
215215
cinThread = std::thread(ThreadProc, threadData);
216216
nativeThreadHandle = cinThread.native_handle();
217-
218-
#ifndef WIN32
219217
cinThread.detach();
220-
#endif
221218
}
222219

223220
void onReady() override

0 commit comments

Comments
 (0)