mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-21 08:21:54 +02:00
Unbind from source if we are not responsible for it
This commit is contained in:
parent
1554b638f6
commit
15704d8fbf
@ -145,6 +145,8 @@ ControlConnection::setup()
|
||||
}
|
||||
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
|
||||
d->sourceLock.unlock();
|
||||
// There is already another ControlConnection in use, we are useless.
|
||||
|
Loading…
x
Reference in New Issue
Block a user