Skip to content
Snippets Groups Projects
Commit 0222cd25 authored by Andy Green's avatar Andy Green
Browse files

lws_get_peer_write_allowance: cope with no role callback for it

parent ff2b1eab
No related branches found
No related tags found
No related merge requests found
......@@ -2162,6 +2162,8 @@ lws_partial_buffered(struct lws *wsi)
LWS_VISIBLE lws_fileofs_t
lws_get_peer_write_allowance(struct lws *wsi)
{
if (!wsi->role_ops->tx_credit)
return -1;
return wsi->role_ops->tx_credit(wsi);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment