fix inverted logic

This commit is contained in:
Dennis Luxen 2014-08-07 19:19:21 +02:00
parent 6fb7c8687e
commit 9aeb28066d

View File

@ -169,14 +169,14 @@ int main(int argc, const char *argv[])
auto status = future.wait_for(std::chrono::seconds(2)); auto status = future.wait_for(std::chrono::seconds(2));
if (status != std::future_status::ready) if (status == std::future_status::ready)
{ {
SimpleLogger().Write(logWARNING) << "Didn't exit within 2 seconds. Hard abort!"; server_thread.join();
server_task.reset(); // just kill it
} }
else else
{ {
server_thread.join(); SimpleLogger().Write(logWARNING) << "Didn't exit within 2 seconds. Hard abort!";
server_task.reset(); // just kill it
} }
} }