mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Fix websocket to glib IO condition mapping
This commit is contained in:
parent
8a65c1fce2
commit
1607d6a6c1
1 changed files with 8 additions and 6 deletions
|
|
@ -327,14 +327,16 @@ WebsocketsServer::io_handler (Glib::IOCondition ioc, lws_sockfd_type fd)
|
||||||
IOCondition
|
IOCondition
|
||||||
WebsocketsServer::events_to_ioc (int events)
|
WebsocketsServer::events_to_ioc (int events)
|
||||||
{
|
{
|
||||||
IOCondition ioc;
|
IOCondition ioc = Glib::IOCondition (0);
|
||||||
|
|
||||||
if (events & LWS_POLLIN) {
|
if (events & LWS_POLLIN) {
|
||||||
ioc = Glib::IO_IN;
|
ioc |= Glib::IO_IN;
|
||||||
} else if (events & LWS_POLLOUT) {
|
}
|
||||||
ioc = Glib::IO_OUT;
|
if (events & LWS_POLLOUT) {
|
||||||
} else if (events & LWS_POLLHUP) {
|
ioc |= Glib::IO_OUT;
|
||||||
ioc = Glib::IO_HUP;
|
}
|
||||||
|
if (events & LWS_POLLHUP) {
|
||||||
|
ioc |= Glib::IO_HUP;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ioc;
|
return ioc;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue