MINOR: h2: Use BUG_ON() to enforce rules in subscribe/unsubscribe.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 14 May 2019 15:50:32 +0000 (17:50 +0200)
committerOlivier Houchard <cognet@ci0.org>
Tue, 14 May 2019 16:18:25 +0000 (18:18 +0200)
commitf8338151a31310fdbe55382c1ab8273c8413b0ca
treefbebccee3ad61e56883ce34c6516c1503e46bb40
parent469fa2c9d9dfc4ec08dc2555f18c89587411716f
MINOR: h2: 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_h2.c