- fix filepush a bit, remove debug out
authorFelix Domke <tmbinc@elitedvb.net>
Thu, 28 Jul 2005 01:49:22 +0000 (01:49 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Thu, 28 Jul 2005 01:49:22 +0000 (01:49 +0000)
lib/base/Makefile.am
lib/base/filepush.cpp

index 6094fb4..7c66c4d 100644 (file)
@@ -6,4 +6,5 @@ noinst_LIBRARIES = libenigma_base.a
 libenigma_base_a_SOURCES = \
        buffer.cpp ebase.cpp econfig.cpp eerror.cpp elock.cpp \
        init.cpp message.cpp thread.cpp \
-       smartptr.cpp estring.cpp connection.cpp
+       smartptr.cpp estring.cpp connection.cpp \
+       filepush.cpp
index b85edbc..d873d2b 100644 (file)
@@ -38,7 +38,7 @@ void eFilePushThread::thread()
                                eDebug("eFilePushThread *write error* - not yet handled");
                                // ... we would stop the thread
                        }
-                       printf("FILEPUSH: wrote %d bytes\n", w);
+//                     printf("FILEPUSH: wrote %d bytes\n", w);
                        m_buf_start += w;
                        continue;
                }
@@ -53,7 +53,12 @@ void eFilePushThread::thread()
                                continue;
                        eDebug("eFilePushThread *read error* - not yet handled");
                }
-               printf("FILEPUSH: read %d bytes\n", m_buf_end);
+               if (m_buf_end == 0)
+               {
+                       eDebug("FILEPUSH: end-of-file! (currently unhandled)");
+                       break;
+               }
+//             printf("FILEPUSH: read %d bytes\n", m_buf_end);
        }
        
        eDebug("FILEPUSH THREAD STOP");