check if server started in spectrum2_manager
This commit is contained in:
parent
abc5b11ca5
commit
9a15e789ed
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue