summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-server/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'csgo-loader/csgo-server/Server.cpp')
-rw-r--r--csgo-loader/csgo-server/Server.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/csgo-loader/csgo-server/Server.cpp b/csgo-loader/csgo-server/Server.cpp
index a78bb9a..f822753 100644
--- a/csgo-loader/csgo-server/Server.cpp
+++ b/csgo-loader/csgo-server/Server.cpp
@@ -20,13 +20,13 @@ int __stdcall WinMain(HINSTANCE, HINSTANCE, char*, int)
// Create an instance of the TCP server.
Networking::TCPServer Server;
- // Attach our connection handler.
- Server += ConnectionHandler;
-
bool Result = Server.Start(SERVER_PORT);
if(Result)
{
+ // Attach our connection handler.
+ Server += ConnectionHandler;
+
// Accept any incoming connections.
for(;;)
Server.AcceptConnection();