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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user