# HG changeset patch # User mroi # Date 1051627733 0 # Node ID 5d9770cb29618c696d5d0c765efd11972472794a # Parent 0828d362270fc3a07214fe6865b38bf0c5663a90 fix some conditions where the following assertion would fail diff -r 0828d362270f -r 5d9770cb2961 searching.c --- a/searching.c Tue Apr 29 14:48:19 2003 +0000 +++ b/searching.c Tue Apr 29 14:48:53 2003 +0000 @@ -410,6 +410,14 @@ pthread_mutex_unlock(&this->vm_lock); return S_ERR; } + if (this->position_current.hop_channel != this->vm->hop_channel || + this->position_current.domain != state->domain || + this->position_current.vts != state->vtsN || + this->position_current.cell_restart != state->cell_restart) { + printerr("New position not yet determined."); + pthread_mutex_unlock(&this->vm_lock); + return S_ERR; + } /* Get current sector */ cur_sector = this->vobu.vobu_start + this->vobu.blockN;