From d15878555fd4986a3975d0fd8771ec94cf23f7d6 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 12 Sep 2011 08:18:31 +0200 Subject: [PATCH] * Let's put an 'empty dbcmd list' assert in DBSyncConnection and see if we ever hit this condition. --- src/libtomahawk/network/dbsyncconnection.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/libtomahawk/network/dbsyncconnection.cpp b/src/libtomahawk/network/dbsyncconnection.cpp index e795ef79c..803d09501 100644 --- a/src/libtomahawk/network/dbsyncconnection.cpp +++ b/src/libtomahawk/network/dbsyncconnection.cpp @@ -143,16 +143,10 @@ DBSyncConnection::check() connect( cmd_us, SIGNAL( done( QVariantMap ) ), SLOT( gotUs( QVariantMap ) ) ); Database::instance()->enqueue( QSharedPointer(cmd_us) ); - if ( !m_cmds.isEmpty() ) - { - fetchOpsData( m_cmds.last()->guid() ); - } - else - { - DatabaseCommand_CollectionStats* cmd_them = new DatabaseCommand_CollectionStats( m_source ); - connect( cmd_them, SIGNAL( done( QVariantMap ) ), SLOT( gotThem( QVariantMap ) ) ); - Database::instance()->enqueue( QSharedPointer(cmd_them) ); - } + Q_ASSERT( m_cmds.isEmpty() ); + DatabaseCommand_CollectionStats* cmd_them = new DatabaseCommand_CollectionStats( m_source ); + connect( cmd_them, SIGNAL( done( QVariantMap ) ), SLOT( gotThem( QVariantMap ) ) ); + Database::instance()->enqueue( QSharedPointer(cmd_them) ); // restarts idle countdown m_timer.start();