changeset 181:5d9770cb2961 src

fix some conditions where the following assertion would fail
author mroi
date Tue, 29 Apr 2003 14:48:53 +0000
parents 0828d362270f
children 071aee18f5aa
files searching.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;