1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

TWK-738: Don't crash on quit

This commit is contained in:
Leo Franchi 2012-03-08 19:20:41 -05:00
parent f4603e0cad
commit afe2db8d51

View File

@ -107,7 +107,7 @@ LastFmAccount::authenticate()
void
LastFmAccount::deauthenticate()
{
if ( m_resolver.data()->running() )
if ( !m_resolver.isNull() && m_resolver.data()->running() )
m_resolver.data()->stop();
emit connectionStateChanged( connectionState() );