revert ifndef to ifdef

This commit is contained in:
Substitute 2021-02-15 15:07:20 -05:00
parent b73591bacf
commit 5b0fae4589

View File

@ -12,7 +12,7 @@ class server : networked
{ {
auto client = networked(accept(socket, nullptr, nullptr)); auto client = networked(accept(socket, nullptr, nullptr));
client_connected.execute(client); client_connected.execute(client);
#ifndef THREADED #ifdef THREADED
std::thread(&server::accept_client_message, this, client).detach(); std::thread(&server::accept_client_message, this, client).detach();
#else #else
std::thread(&server::accept_client_message, this, client).join(); std::thread(&server::accept_client_message, this, client).join();