mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Useless connect is useless.
ControlConnection's finished() triggers deleteLater(), which calls Source::setOffline(). For this reason, finished() does not need to be connected to setOffline(), because this causes a race condition.
This commit is contained in:
@@ -88,8 +88,6 @@ void
|
||||
Source::setControlConnection( ControlConnection* cc )
|
||||
{
|
||||
m_cc = cc;
|
||||
if ( cc )
|
||||
connect( cc, SIGNAL( finished() ), SLOT( setOffline() ), Qt::QueuedConnection );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user