mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 23:39:42 +01:00
Print out unexpected non-JSON messages.
This commit is contained in:
parent
7125ba758f
commit
2f76f0c43e
@ -283,8 +283,8 @@ ControlConnection::handleMsg( msg_ptr msg )
|
||||
// All control connection msgs are JSON
|
||||
if ( !msg->is( Msg::JSON ) )
|
||||
{
|
||||
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Received message was not in JSON format:" << qPrintable( msg->payload() );
|
||||
Q_ASSERT( msg->is( Msg::JSON ) );
|
||||
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Received message was not in JSON format";
|
||||
markAsFailed();
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user