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