mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 07:07:05 +02:00
* Fix crash bug.
This commit is contained in:
@@ -82,7 +82,8 @@ SourceList::remove( Tomahawk::Source* s )
|
|||||||
m_sources.remove( s->userName() );
|
m_sources.remove( s->userName() );
|
||||||
qDebug() << "SourceList::remove(" << s->userName() << "), total sources now:" << m_sources.size();
|
qDebug() << "SourceList::remove(" << s->userName() << "), total sources now:" << m_sources.size();
|
||||||
|
|
||||||
src->controlConnection()->shutdown( true );
|
if ( src->controlConnection() )
|
||||||
|
src->controlConnection()->shutdown( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
emit sourceRemoved( src );
|
emit sourceRemoved( src );
|
||||||
|
Reference in New Issue
Block a user