bug fix with connection less protocol messages system at the client

This commit is contained in:
Volker Fischer 2011-04-23 20:44:56 +00:00
parent 5e82a73b17
commit c4818c55e0

View file

@ -120,8 +120,10 @@ void CSocket::OnDataReceived()
if ( bIsClient )
{
// client:
// check if packet comes from the server we want to connect
if ( !( pChannel->GetAddress() == RecHostAddr ) )
// check if packet comes from the server we want to connect and that
// the channel is enabled
if ( !( pChannel->GetAddress() == RecHostAddr ) ||
!pChannel->IsEnabled() )
{
// this is an unknown address, try to parse connection less
// message