mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-21 21:25:52 +02:00
* This should fix not properly going offline manually.
This commit is contained in:
@@ -22,7 +22,9 @@ DatabaseWorker::DatabaseWorker( DatabaseImpl* lib, Database* db, bool mutates )
|
|||||||
|
|
||||||
DatabaseWorker::~DatabaseWorker()
|
DatabaseWorker::~DatabaseWorker()
|
||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO;
|
qDebug() << Q_FUNC_INFO << m_outstanding;
|
||||||
|
|
||||||
|
qDebug () << m_commands;
|
||||||
|
|
||||||
quit();
|
quit();
|
||||||
wait( 5000 );
|
wait( 5000 );
|
||||||
|
@@ -33,6 +33,7 @@ Source::Source( const QString &username )
|
|||||||
, m_id( 0 )
|
, m_id( 0 )
|
||||||
, m_cc( 0 )
|
, m_cc( 0 )
|
||||||
{
|
{
|
||||||
|
qDebug() << Q_FUNC_INFO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
|
#include "network/controlconnection.h"
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
SourceList* SourceList::s_instance = 0;
|
SourceList* SourceList::s_instance = 0;
|
||||||
@@ -79,6 +81,8 @@ SourceList::remove( Tomahawk::Source* s )
|
|||||||
m_sources_id2name.remove( src->id() );
|
m_sources_id2name.remove( src->id() );
|
||||||
m_sources.remove( s->userName() );
|
m_sources.remove( s->userName() );
|
||||||
qDebug() << "SourceList::remove(" << s->userName() << "), total sources now:" << m_sources.size();
|
qDebug() << "SourceList::remove(" << s->userName() << "), total sources now:" << m_sources.size();
|
||||||
|
|
||||||
|
src->controlConnection()->shutdown( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
emit sourceRemoved( src );
|
emit sourceRemoved( src );
|
||||||
|
Reference in New Issue
Block a user