* added the assert correctly
authorMichal Voců <michal@ruk.cuni.cz>
Fri, 14 Jan 2005 15:01:18 +0000 (15:01 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Fri, 14 Jan 2005 15:01:18 +0000 (15:01 +0000)
org.glite.lb.logger/src/event_queue.c

index ad8ade1..75a723f 100644 (file)
@@ -171,10 +171,12 @@ event_queue_insert(struct event_queue *eq, struct server_msg *msg)
   if(eq->mark_this && (el->prev == eq->mark_this)) 
     eq->mark_prev = el;
 #endif
+
+  assert(eq->head != NULL);
+
   event_queue_unlock(eq);
   /* end of critical section */
 
-  assert(eq->head != NULL);
   return(0);
 }