mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
* Let's put an 'empty dbcmd list' assert in DBSyncConnection and see if we ever hit this condition.
This commit is contained in:
@@ -143,16 +143,10 @@ DBSyncConnection::check()
|
|||||||
connect( cmd_us, SIGNAL( done( QVariantMap ) ), SLOT( gotUs( QVariantMap ) ) );
|
connect( cmd_us, SIGNAL( done( QVariantMap ) ), SLOT( gotUs( QVariantMap ) ) );
|
||||||
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd_us) );
|
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd_us) );
|
||||||
|
|
||||||
if ( !m_cmds.isEmpty() )
|
Q_ASSERT( m_cmds.isEmpty() );
|
||||||
{
|
DatabaseCommand_CollectionStats* cmd_them = new DatabaseCommand_CollectionStats( m_source );
|
||||||
fetchOpsData( m_cmds.last()->guid() );
|
connect( cmd_them, SIGNAL( done( QVariantMap ) ), SLOT( gotThem( QVariantMap ) ) );
|
||||||
}
|
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd_them) );
|
||||||
else
|
|
||||||
{
|
|
||||||
DatabaseCommand_CollectionStats* cmd_them = new DatabaseCommand_CollectionStats( m_source );
|
|
||||||
connect( cmd_them, SIGNAL( done( QVariantMap ) ), SLOT( gotThem( QVariantMap ) ) );
|
|
||||||
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd_them) );
|
|
||||||
}
|
|
||||||
|
|
||||||
// restarts idle countdown
|
// restarts idle countdown
|
||||||
m_timer.start();
|
m_timer.start();
|
||||||
|
Reference in New Issue
Block a user