MINOR: h1: Use BUG_ON() to enforce rules in subscribe/unsubscribe.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 14 May 2019 16:02:23 +0000 (18:02 +0200)
committerOlivier Houchard <cognet@ci0.org>
Tue, 14 May 2019 16:18:25 +0000 (18:18 +0200)
commit00b8f7c60b8ffa735b1744dc916dec9e5b4388d1
tree224ceeaa3c9d0969a99e897d09fd4a486bab2041
parentf8338151a31310fdbe55382c1ab8273c8413b0ca
MINOR: h1: Use BUG_ON() to enforce rules in subscribe/unsubscribe.

It is not legal to subscribe if we're already subscribed, or to unsubscribe
if we did not subscribe, so instead of trying to handle those cases, just
assert that it's ok using the new BUG_ON() macro.
src/mux_h1.c