Handle channel closure during a receive callback when the ringbuffer wraps. master
authorGuus Sliepen <guus@sliepen.org>
Thu, 14 May 2020 21:47:01 +0000 (23:47 +0200)
committerGuus Sliepen <guus@sliepen.org>
Thu, 14 May 2020 21:47:01 +0000 (23:47 +0200)
commit6b7010c9d90978b60d35abf6242d2a10d6bbd5bc
tree8e13521869f07197dfd5efc58e93a09831b8b500
parenta4a40a3d8b3b8e62853823afa34e6f4a0b40c1de
Handle channel closure during a receive callback when the ringbuffer wraps.

If the data in the ringbuffer wraps around, and we call the receive
callback for the first part of the data, the callback function might close
the channel, so we must not call the callback for the second part of the
data.
utcp.c