check if server started in spectrum2_manager

This commit is contained in:
HanzZ 2012-10-22 11:52:53 +02:00
parent abc5b11ca5
commit 9a15e789ed

View file

@ -139,7 +139,10 @@ int main(int argc, char **argv)
}
else if (command[0] == "server") {
Server server(&config);
server.start();
if (server.start() == false) {
std::cerr << "Can't set up server handler.\n";
return 1;
}
while (1) { sleep(10); }
}
else {