1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 17:29:42 +01:00

Fix crash in claimOffer()

This commit is contained in:
Dominik Schmidt 2013-01-27 01:36:11 +01:00
parent 3941a61ca9
commit 9e9459486a

View File

@ -856,7 +856,7 @@ Servent::claimOffer( ControlConnection* cc, const QString &nodeid, const QString
bool authed = false;
foreach( ControlConnection* cc, m_controlconnections )
{
if( cc->socket()->peerAddress() == peer )
if( !cc->socket().isNull() && cc->socket()->peerAddress() == peer )
{
authed = true;
break;