revert ifndef to ifdef
This commit is contained in:
parent
b73591bacf
commit
5b0fae4589
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user