mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-19 12:21: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()
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
qDebug() << Q_FUNC_INFO << m_outstanding;
|
||||
|
||||
qDebug () << m_commands;
|
||||
|
||||
quit();
|
||||
wait( 5000 );
|
||||
|
@@ -33,6 +33,7 @@ Source::Source( const QString &username )
|
||||
, m_id( 0 )
|
||||
, m_cc( 0 )
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -2,6 +2,8 @@
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
#include "network/controlconnection.h"
|
||||
|
||||
using namespace Tomahawk;
|
||||
|
||||
SourceList* SourceList::s_instance = 0;
|
||||
@@ -79,6 +81,8 @@ SourceList::remove( Tomahawk::Source* s )
|
||||
m_sources_id2name.remove( src->id() );
|
||||
m_sources.remove( s->userName() );
|
||||
qDebug() << "SourceList::remove(" << s->userName() << "), total sources now:" << m_sources.size();
|
||||
|
||||
src->controlConnection()->shutdown( true );
|
||||
}
|
||||
|
||||
emit sourceRemoved( src );
|
||||
|
Reference in New Issue
Block a user