]> git.vomp.tv Git - vompclient-marten.git/commitdiff
Kill connection immediately if log send failed to send all
authorChris Tallon <chris@vomp.tv>
Sat, 19 Jan 2013 18:39:42 +0000 (18:39 +0000)
committerChris Tallon <chris@vomp.tv>
Sat, 19 Jan 2013 18:39:42 +0000 (18:39 +0000)
vdr.cc

diff --git a/vdr.cc b/vdr.cc
index 9e1bf8a2e6fad37e8af2651b9bd39f709c37f78a..6aee5227d33cb4a06fe3aa5327ed094e4fe26589 100644 (file)
--- a/vdr.cc
+++ b/vdr.cc
@@ -701,6 +701,7 @@ bool VDR::LogExtern(const char* logString)
   
   if (tcp->sendData(buffer, packetLength) != packetLength)
   {
+    connected = false; // stop the rest of the connection  
     delete [] buffer;
     return false;
   }