1
0
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:
Christian Muehlhaeuser
2011-02-15 14:55:14 +01:00
parent 7c8f6fda20
commit 50372b0647
3 changed files with 8 additions and 1 deletions

View File

@@ -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 );

View File

@@ -33,6 +33,7 @@ Source::Source( const QString &username )
, m_id( 0 )
, m_cc( 0 )
{
qDebug() << Q_FUNC_INFO;
}

View File

@@ -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 );