mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Only check iodev when available.
This commit is contained in:
@@ -230,12 +230,11 @@ 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();
|
||||
|
||||
shutdown();
|
||||
|
Reference in New Issue
Block a user