diff --git a/Client/main.cpp b/Client/main.cpp index 00f1977b..695d431a 100644 --- a/Client/main.cpp +++ b/Client/main.cpp @@ -16,6 +16,7 @@ int main() { std::cout << "HTTP/1.1 200 OK\nConnection: close\nContent-Type: video/x-flv\n\n"; while(true) { msg = mySocket.recv(&buffer[0],10000); + if (!std::cout.good()) { exit(0); } std::cout.write(buffer,msg); } // disconnect