Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,14 @@ void CClient::OnClientIDReceived ( int iServerChanID )
// allocate and map client-side channel 0
int iChanID = FindClientChannel ( iServerChanID, true ); // should always return channel 0

// make sure we got a real channel (should never occur)
if ( iChanID == INVALID_INDEX )
{
Stop(); // stops audio and channel, sets CS_DISCONNECTED
emit ConnectingFailed ( tr ( "Unexpected client ID." ) );
return;
}

// for headless mode we support to mute our own signal in the personal mix
// (note that the check for headless is done in the main.cpp and must not
// be checked here)
Expand Down
Loading