Skip to content

Commit

Permalink
Fix dedicated server compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
gameraccoon committed Feb 18, 2024
1 parent 2e42e86 commit f742ef9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/GameMain/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,13 @@ int main(int argc, char** argv)
serverThread->join(); // this call waits for the server thread to be joined
}

#ifndef DEDICATED_SERVER
if (runSecondClient)
{
shouldStopExtraThreads = true;
client2Thread->join(); // this call waits for the client thread to be joined
}
#endif // !DEDICATED_SERVER

applicationData.shutdownThreads(); // this call waits for the threads to be joined

Expand Down

0 comments on commit f742ef9

Please sign in to comment.