fix stdin bug for enb

master
Andre Puschmann 7 years ago
parent bf45ba32bf
commit a08bbe5ad4

@ -344,6 +344,10 @@ void *input_loop(void *m)
char key; char key;
while(running) { while(running) {
cin >> key; cin >> key;
if (cin.eof() || cin.bad()) {
cout << "Closing stdin thread." << endl;
break;
} else {
if('t' == key) { if('t' == key) {
do_metrics = !do_metrics; do_metrics = !do_metrics;
if(do_metrics) { if(do_metrics) {
@ -354,6 +358,7 @@ void *input_loop(void *m)
metrics->toggle_print(do_metrics); metrics->toggle_print(do_metrics);
} }
} }
}
return NULL; return NULL;
} }

Loading…
Cancel
Save