Commit d8b2c214e9e616ac6ec9a727f9d4af12046f03d7

Authored by Georg Hopp
1 parent 96d30bb5

small fix in delete

Showing 1 changed file with 3 additions and 0 deletions
@@ -35,6 +35,9 @@ TR_queueDelete(TR_Queue this, void * msg) @@ -35,6 +35,9 @@ TR_queueDelete(TR_Queue this, void * msg)
35 if (node == this->last) { 35 if (node == this->last) {
36 this->last = parent; 36 this->last = parent;
37 } 37 }
  38 + if (node == this->first) {
  39 + this->first = node->next;
  40 + }
38 TR_delete(node); 41 TR_delete(node);
39 this->nmsg--; 42 this->nmsg--;
40 } 43 }
Please register or login to post a comment