mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-28 11:42:42 +01: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:
parent
e439bd3b43
commit
67b38695bb
@ -88,8 +88,6 @@ void
|
||||
Source::setControlConnection( ControlConnection* cc )
|
||||
{
|
||||
m_cc = cc;
|
||||
if ( cc )
|
||||
connect( cc, SIGNAL( finished() ), SLOT( setOffline() ), Qt::QueuedConnection );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user