Skip to content

Commit b93bf17

Browse files
committed
2 parents c28df9a + 0f7ef71 commit b93bf17

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

PythonDebugger/PythonDebugger.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,11 @@ void PythonDebugger::OnTimer(wxTimerEvent& event)
252252
{
253253
while(m_pp->IsInputAvailable())
254254
{
255-
if(!m_istream->Eof())
256-
m_outbuf+=m_istream->GetC();
257-
else
258-
break;
255+
int c;
256+
if (m_istream->CanRead())
257+
c = m_istream->GetC();
258+
if (m_istream->LastRead()>0)
259+
m_outbuf += c;
259260
}
260261
//TODO: Program could hang if debug output is incorrectly parsed
261262
m_outdebugbuf=m_outbuf;

0 commit comments

Comments
 (0)