This commit is contained in:
Glenn Maynard
2006-02-13 01:32:25 +00:00
parent 5095a45ae6
commit 3c3cd91949
@@ -665,7 +665,7 @@ void NetworkPostData::HttpThread()
RString sResult; RString sResult;
while( m_pStream->GetState() == NetworkStream::STATE_CONNECTED ) while( m_pStream->GetState() == NetworkStream::STATE_CONNECTED )
{ {
sBuf.erase( sBuf.begin(), sBuf.end() ); sBuf.clear();
void *p = sBuf.GetBuffer( 1024 ); void *p = sBuf.GetBuffer( 1024 );
int iGot = m_pStream->Read( p, 1024 ); int iGot = m_pStream->Read( p, 1024 );
if( iGot >= 0 ) if( iGot >= 0 )
@@ -704,7 +704,7 @@ void NetworkPostData::Start( const RString &sHost, int iPort, const RString &sPa
m_sHost = sHost; m_sHost = sHost;
m_iPort = iPort; m_iPort = iPort;
m_sPath = sPath; m_sPath = sPath;
m_sStatus.erase( m_sStatus.begin(), m_sStatus.end() ); m_sStatus.clear();
m_fProgress = 0; m_fProgress = 0;
m_Thread.SetName( "HTTP thread" ); m_Thread.SetName( "HTTP thread" );