MINOR: mux-h2: avoid taking the toremove_lock in on dying tasks
authorWilly Tarreau <w@1wt.eu>
Tue, 30 Jun 2020 09:19:23 +0000 (11:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 30 Jun 2020 12:06:19 +0000 (14:06 +0200)
commitbd42e9257da0c66b8e1f77fa926073ea39b3d98a
treec69df1e2ca04630a4dab373f9b60ff00e0a57877
parent68d4ee9e261e6a6a921e2107b43a36ed5299e8f3
MINOR: mux-h2: avoid taking the toremove_lock in on dying tasks

If the owning task is already dying (context was destroyed by h2_takeover)
there's no point taking the lock then removing it later since all the code
in between is conditionned by a non-null context. Let's simplify this.
src/mux_h2.c