Workaround for #557
This commit is contained in:
parent
ff09af2812
commit
3f1d67ca4c
@ -23,8 +23,9 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
||||
#include <iostream>
|
||||
#include <signal.h>
|
||||
|
||||
#include <boost/thread.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/date_time.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
|
||||
#include "Server/DataStructures/QueryObjectsStorage.h"
|
||||
#include "Server/ServerConfiguration.h"
|
||||
@ -138,7 +139,11 @@ int main (int argc, char * argv[0]) {
|
||||
std::cout << "[server] initiating shutdown" << std::endl;
|
||||
s->Stop();
|
||||
std::cout << "[server] stopping threads" << std::endl;
|
||||
t.join();
|
||||
|
||||
if(!t.timed_join(boost::posix_time::seconds(2))) {
|
||||
// INFO("Threads did not finish within 2 seconds. Hard abort!");
|
||||
}
|
||||
|
||||
std::cout << "[server] freeing objects" << std::endl;
|
||||
delete s;
|
||||
delete objects;
|
||||
|
Loading…
Reference in New Issue
Block a user