projects
/
srvx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cleanups and fixes
[srvx.git]
/
src
/
hash.c
diff --git
a/src/hash.c
b/src/hash.c
index b63da6d7458a916c3260df09cd01abc506ee265b..bd205afa7d969c1a13a8a1073b33f17107f6d3eb 100644
(file)
--- a/
src/hash.c
+++ b/
src/hash.c
@@
-518,8
+518,7
@@
LockChannel(struct chanNode* channel)
void
UnlockChannel(struct chanNode *channel)
{
- if (!channel->locks)
- return;
+ assert(channel->locks > 0);
if (!--channel->locks && !channel->members.used)
DelChannel(channel);
}