Fixed whitespace, moved timeout declaration.
This commit is contained in:
parent
92b799bdad
commit
c10d653607
@ -75,9 +75,13 @@ int rdp_guac_client_handle_messages(guac_client* client) {
|
|||||||
void* write_fds[32];
|
void* write_fds[32];
|
||||||
int read_count = 0;
|
int read_count = 0;
|
||||||
int write_count = 0;
|
int write_count = 0;
|
||||||
|
|
||||||
fd_set rfds, wfds;
|
fd_set rfds, wfds;
|
||||||
|
|
||||||
|
struct timeval timeout = {
|
||||||
|
.tv_sec = 0;
|
||||||
|
.tv_usec = 250000;
|
||||||
|
};
|
||||||
|
|
||||||
/* get rdp fds */
|
/* get rdp fds */
|
||||||
if (!freerdp_get_fds(rdp_inst, read_fds, &read_count, write_fds, &write_count)) {
|
if (!freerdp_get_fds(rdp_inst, read_fds, &read_count, write_fds, &write_count)) {
|
||||||
guac_client_log_error(client, "Unable to read RDP file descriptors.");
|
guac_client_log_error(client, "Unable to read RDP file descriptors.");
|
||||||
@ -116,9 +120,6 @@ int rdp_guac_client_handle_messages(guac_client* client) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Otherwise, wait for file descriptors given */
|
/* Otherwise, wait for file descriptors given */
|
||||||
struct timeval timeout;
|
|
||||||
timeout.tv_sec = 0;
|
|
||||||
timeout.tv_usec = 250000;
|
|
||||||
if (select(max_fd + 1, &rfds, &wfds, NULL, &timeout) == -1) {
|
if (select(max_fd + 1, &rfds, &wfds, NULL, &timeout) == -1) {
|
||||||
/* these are not really errors */
|
/* these are not really errors */
|
||||||
if (!((errno == EAGAIN) ||
|
if (!((errno == EAGAIN) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user