- bugfix for endless loop on headless server when pressing control-D

This commit is contained in:
Mark Vejvoda 2011-09-27 19:21:06 +00:00
parent 0cf03a3562
commit 04b40ab476

View File

@ -3259,6 +3259,8 @@ int glestMain(int argc, char** argv) {
#endif
{
getline(cin, command);
cin.clear();
printf("server command [%s]\n",command.c_str());
if(command == "quit") {
break;