commit | 35d116885d590a845b227e8ab808aa5fdf5890c1 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Tue May 14 18:02:47 2019 +0200 |
committer | Olivier Houchard <cognet@ci0.org> | Tue May 14 18:18:25 2019 +0200 |
tree | fbaa381a7323ffde6949f1253bbe3b4dbfa4e173 | |
parent | 00b8f7c60b8ffa735b1744dc916dec9e5b4388d1 [diff] |
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.