1
0
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:
Uwe L. Korn 2013-06-28 13:27:08 +02:00 committed by Michael Zanetti
parent 1554b638f6
commit 15704d8fbf

View File

@ -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.