1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

* While not a bug, this shutdown check would have never been triggered.

This commit is contained in:
Christian Muehlhaeuser
2012-06-24 11:15:17 +02:00
parent 5cc86b7876
commit f8ca1ac994

View File

@@ -107,16 +107,17 @@ void
DBSyncConnection::check() DBSyncConnection::check()
{ {
qDebug() << Q_FUNC_INFO << this << m_source->id(); qDebug() << Q_FUNC_INFO << this << m_source->id();
if ( m_state != UNKNOWN && m_state != SYNCED )
{
qDebug() << "Syncing in progress already.";
return;
}
if ( m_state == SHUTDOWN ) if ( m_state == SHUTDOWN )
{ {
qDebug() << "Aborting sync due to shutdown."; qDebug() << "Aborting sync due to shutdown.";
return; return;
} }
if ( m_state != UNKNOWN && m_state != SYNCED )
{
qDebug() << "Syncing in progress already.";
return;
}
m_uscache.clear(); m_uscache.clear();
changeState( CHECKING ); changeState( CHECKING );