Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add some comments.
  • Loading branch information
ericsnowcurrently committed Oct 17, 2023
commit e1ba74c056a173665802ec6dab27cc448710a89d
4 changes: 4 additions & 0 deletions Modules/_xxinterpchannelsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,9 +1091,13 @@ static int
_channelends_is_open(_channelends *ends)
{
if (ends->numsendopen != 0 || ends->numrecvopen != 0) {
// At least one interpreter is still associated with the channel
// (and hasn't been released).
return 1;
}
// XXX This is wrong if an end can ever be removed.
if (ends->send == NULL && ends->recv == NULL) {
// The channel has never had any interpreters associated with it.
return 1;
}
return 0;
Expand Down