MINOR: connections: Use BUG_ON() to enforce rules in subscribe/unsubscribe.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 14 May 2019 16:02:47 +0000 (18:02 +0200)
committerOlivier Houchard <cognet@ci0.org>
Tue, 14 May 2019 16:18:25 +0000 (18:18 +0200)
commit35d116885d590a845b227e8ab808aa5fdf5890c1
treefbaa381a7323ffde6949f1253bbe3b4dbfa4e173
parent00b8f7c60b8ffa735b1744dc916dec9e5b4388d1
MINOR: connections: 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/connection.c