From: Felix Domke Date: Thu, 28 Jul 2005 01:49:22 +0000 (+0000) Subject: - fix filepush a bit, remove debug out X-Git-Tag: 2.6.0~5791 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/83068cdf211abb9ea524d3e75f8228d987e7bdd6 - fix filepush a bit, remove debug out --- diff --git a/lib/base/Makefile.am b/lib/base/Makefile.am index 6094fb48..7c66c4db 100644 --- a/lib/base/Makefile.am +++ b/lib/base/Makefile.am @@ -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 diff --git a/lib/base/filepush.cpp b/lib/base/filepush.cpp index b85edbc1..d873d2b3 100644 --- a/lib/base/filepush.cpp +++ b/lib/base/filepush.cpp @@ -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");