mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
Unbind from source if we are not responsible for it
This commit is contained in:
committed by
Michael Zanetti
parent
1554b638f6
commit
15704d8fbf
@@ -145,6 +145,8 @@ ControlConnection::setup()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// We are not responsible for this source anymore, so do not keep a reference.
|
||||||
|
d->source = Tomahawk::source_ptr();
|
||||||
// Unlock before we delete ourselves
|
// Unlock before we delete ourselves
|
||||||
d->sourceLock.unlock();
|
d->sourceLock.unlock();
|
||||||
// There is already another ControlConnection in use, we are useless.
|
// There is already another ControlConnection in use, we are useless.
|
||||||
|
Reference in New Issue
Block a user