diff --git a/src/fne/HostFNE.cpp b/src/fne/HostFNE.cpp index 58165d33..f7fc1ca4 100644 --- a/src/fne/HostFNE.cpp +++ b/src/fne/HostFNE.cpp @@ -189,7 +189,7 @@ int HostFNE::run() if (m_network != nullptr) { while (!g_killed) { m_network->processNetwork(); - Thread::sleep(5); + Thread::sleep(5U); } } }); @@ -226,6 +226,9 @@ int HostFNE::run() Thread::sleep(1U); } + // shutdown threads + networkLoop.wait(); + if (m_network != nullptr) { m_network->close(); delete m_network; diff --git a/src/fne/network/FNENetwork.h b/src/fne/network/FNENetwork.h index 603b2467..23f27beb 100644 --- a/src/fne/network/FNENetwork.h +++ b/src/fne/network/FNENetwork.h @@ -145,7 +145,7 @@ namespace network // --------------------------------------------------------------------------- // Structure Declaration - // + // Represents the data required for a peer ACL update request thread. // --------------------------------------------------------------------------- struct ACLUpdateRequest {