Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tsfix: revert the code logic back in recover_pts()
  • Loading branch information
perexg committed Sep 19, 2014
1 parent 962f99c commit a001ef0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plumbing/tsfix.c
Expand Up @@ -238,7 +238,6 @@ recover_pts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)

pkt = pr->pr_pkt;
TAILQ_REMOVE(&tf->tf_ptsq, pr, pr_link);
free(pr);

tfs = tfs_find(tf, pkt);

Expand Down Expand Up @@ -269,7 +268,8 @@ recover_pts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
break;
}
if (srch == NULL) {
pkt_ref_dec(pkt);
/* return packet back to tf_ptsq */
TAILQ_INSERT_HEAD(&tf->tf_ptsq, pr, pr_link);
return; /* not arrived yet, wait */
}
}
Expand All @@ -279,6 +279,7 @@ recover_pts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
break;
}

free(pr);
normalize_ts(tf, tfs, pkt);
}
}
Expand Down

0 comments on commit a001ef0

Please sign in to comment.