1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02: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; bool authed = false;
foreach( ControlConnection* cc, m_controlconnections ) foreach( ControlConnection* cc, m_controlconnections )
{ {
if( cc->socket()->peerAddress() == peer ) if( !cc->socket().isNull() && cc->socket()->peerAddress() == peer )
{ {
authed = true; authed = true;
break; break;