mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
* Only check iodev when available.
This commit is contained in:
parent
09a177ec51
commit
8521f88cb9
@ -230,13 +230,12 @@ StreamConnection::handleMsg( msg_ptr msg )
|
||||
// << "payload len" << msg->payload().length()
|
||||
// << "written to device so far: " << m_badded;
|
||||
|
||||
if ( !m_iodev || ( (BufferIODevice*)m_iodev.data() )->nextEmptyBlock() < 0 )
|
||||
if ( m_iodev && ( (BufferIODevice*)m_iodev.data() )->nextEmptyBlock() < 0 )
|
||||
{
|
||||
m_allok = true;
|
||||
|
||||
// tell our iodev there is no more data to read, no args meaning a success:
|
||||
if ( m_iodev )
|
||||
( (BufferIODevice*)m_iodev.data() )->inputComplete();
|
||||
( (BufferIODevice*)m_iodev.data() )->inputComplete();
|
||||
|
||||
shutdown();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user