mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 14:49:45 -04:00
CLEANUP: stream: remove a useless call to si_detach()
It's pointless to call si_detach() after si_reset() since it does nothing due to si->end being NULL.
This commit is contained in:
parent
4c5490ab9c
commit
069b0c8e6f
1 changed files with 0 additions and 1 deletions
|
|
@ -160,7 +160,6 @@ struct stream *stream_new(struct session *sess, struct task *t, enum obj_type *o
|
|||
* callbacks will be initialized before attempting to connect.
|
||||
*/
|
||||
si_reset(&s->si[1]);
|
||||
si_detach(&s->si[1]);
|
||||
|
||||
if (likely(sess->fe->options2 & PR_O2_INDEPSTR))
|
||||
s->si[1].flags |= SI_FL_INDEP_STR;
|
||||
|
|
|
|||
Loading…
Reference in a new issue