From f818ee1e0d91352df5f4e5ccf37ff973868bd26c Mon Sep 17 00:00:00 2001 From: serverericoza Date: Tue, 8 Jun 2010 16:39:03 +0200 Subject: [PATCH] Single execution bug fixed --- Client/main.cpp | 1 + 1 file changed, 1 insertion(+) 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