mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 00:24:12 +02:00
Fix crash in claimOffer()
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user