Skip to content

Commit 3a527ab

Browse files
Add some comments.
1 parent 52c5ce8 commit 3a527ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Modules/_xxinterpchannelsmodule.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,9 +897,13 @@ static int
897897
_channelends_is_open(_channelends *ends)
898898
{
899899
if (ends->numsendopen != 0 || ends->numrecvopen != 0) {
900+
// At least one interpreter is still associated with the channel
901+
// (and hasn't been released).
900902
return 1;
901903
}
904+
// XXX This is wrong if an end can ever be removed.
902905
if (ends->send == NULL && ends->recv == NULL) {
906+
// The channel has never had any interpreters associated with it.
903907
return 1;
904908
}
905909
return 0;

0 commit comments

Comments
 (0)