mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
stream: log unwritten bytes, if any #10663
This commit is contained in:
parent
41bb68b8e8
commit
1f6c9fd822
@ -113,6 +113,11 @@ void stream_close_handle(Stream *stream)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
if (stream->uvstream) {
|
||||
if (uv_stream_get_write_queue_size(stream->uvstream) > 0) {
|
||||
WLOG("closed Stream (%p) with %zu unwritten bytes",
|
||||
(void *)stream,
|
||||
uv_stream_get_write_queue_size(stream->uvstream));
|
||||
}
|
||||
uv_close((uv_handle_t *)stream->uvstream, close_cb);
|
||||
} else {
|
||||
uv_close((uv_handle_t *)&stream->uv.idle, close_cb);
|
||||
|
Loading…
Reference in New Issue
Block a user