mirror of
https://github.com/glest/glest-source.git
synced 2025-08-23 00:12:49 +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
|
#endif
|
||||||
{
|
{
|
||||||
getline(cin, command);
|
getline(cin, command);
|
||||||
|
cin.clear();
|
||||||
|
|
||||||
printf("server command [%s]\n",command.c_str());
|
printf("server command [%s]\n",command.c_str());
|
||||||
if(command == "quit") {
|
if(command == "quit") {
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user