- Make sure to clean up properly on error.
- Restrict the critical section to getting the channel buffer and
  adding a reference to it.

1 file changed