mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 16:02:50 +02:00
- bugfix for endless loop on headless server when pressing control-D
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user