diff --git a/server.cpp b/server.cpp index 3e57106f..6aa03642 100644 --- a/server.cpp +++ b/server.cpp @@ -34,9 +34,7 @@ int main () { gettimeofday(&tvChunk, NULL); long nextTick = getTickCount(); - while (cin.good()) - cin.get(); - cin.clear(); + cin.sync(); while (cin.good()) {