diff --git a/src/cas/generic/casDGClient.cc b/src/cas/generic/casDGClient.cc index 3bb32c3e2..32a403604 100644 --- a/src/cas/generic/casDGClient.cc +++ b/src/cas/generic/casDGClient.cc @@ -646,6 +646,11 @@ caStatus casDGClient::processDG () if ( status != S_cas_success ) { break; } + + if ( this->in.bytesPresent () > 0 && dgInBytesConsumed == 0 && status == S_cas_success ) { + this->in.removeMsg ( this->in.bytesPresent() ); + } + } return status; }